Skip to contentSkip to conversation

commands/mail: Fix a mismatched sender name in mail0[23]

PATCH Superseded Xiao Yang 2 participants 4 messages Oct 11, 2017 – Oct 13, 2017

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 commands/mail: Fix a mismatched sender name in mail0[23]

In some systems (e.g. debain), both mail02 and mail03 fail because the sender name of the returned letter is "Mail Deliver Syst" which does not match existed keywords. we add the 'Syst' keyword to fix it.

---
 testcases/commands/mail/mail_tests.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
testcases/commands/mail/mail_tests.sh +4 -4
index 1652aa7..aaf73ef 100755
@@ -169,8 +169,8 @@ else
 		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3, "Mailer-Daemon")}' \
 		    $LTPTMP/tst_mail.res)
 	else
-		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5, "MailDelivery(Subsys|System)")}' \
-		    $LTPTMP/tst_mail.res)
+		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5,
+		    "MailDelivery(Subsys|Systemi|Syst)")}' $LTPTMP/tst_mail.res)
 	fi
 
 	##################################################################
@@ -250,8 +250,8 @@ else
 		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3, "Mailer-Daemon")}' \
 		    $LTPTMP/tst_mail.res)
 	else
-		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5, "MailDelivery(Subsys|System)")}' \
-		    $LTPTMP/tst_mail.res)
+		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5,
+		    "MailDelivery(Subsys|System|Syst)")}' $LTPTMP/tst_mail.res)
 	fi
 	##################################################################
 	# In this testcase, mail will get "Returnedmail:", while mailx will
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 commands/mail: Fix a mismatched sender name in mail0[23]

Hi!

Quoted 15 lines

In some systems (e.g. debain), both mail02 and mail03 fail because the sender name of the returned letter is "Mail Deliver Syst" which does not match existed keywords. we add the 'Syst' keyword to fix it.

---
 testcases/commands/mail/mail_tests.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
testcases/commands/mail/mail_tests.sh +0 -0
index 1652aa7..aaf73ef 100755

testcases/commands/mail/mail_tests.sh else · line 173

Quoted 7 lines
testcases/commands/mail/mail_tests.sh +2 -2
@@ -169,8 +169,8 @@ else
 		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3, "Mailer-Daemon")}' \
 		    $LTPTMP/tst_mail.res)
 	else
-		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5, "MailDelivery(Subsys|System)")}' \
-		    $LTPTMP/tst_mail.res)
+		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5,
+		    "MailDelivery(Subsys|Systemi|Syst)")}' $LTPTMP/tst_mail.res)
                                               ^
					       Typo?
Quoted 22 lines
testcases/commands/mail/mail_tests.sh +2 -2
 	fi
 
 	##################################################################
@@ -250,8 +250,8 @@ else
 		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3, "Mailer-Daemon")}' \
 		    $LTPTMP/tst_mail.res)
 	else
-		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5, "MailDelivery(Subsys|System)")}' \
-		    $LTPTMP/tst_mail.res)
+		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5,
+		    "MailDelivery(Subsys|System|Syst)")}' $LTPTMP/tst_mail.res)
 	fi
 	##################################################################
 	# In this testcase, mail will get "Returnedmail:", while mailx will
Signature · 7 lines
1.8.3.1




-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Signature · 2 lines
Cyril Hrubis
[email protected]
author
#2 lore raw

PATCH v2 1/1 commands/mail: Fix a mismatched sender name in mail0[23]

In reply to Xiao Yang

In some systems (e.g. debain), both mail02 and mail03 fail because the sender name of the returned letter is "Mail Deliver Syst" which does not match existed keywords. we add the 'Syst' keyword to fix it.

---
 testcases/commands/mail/mail_tests.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
testcases/commands/mail/mail_tests.sh +4 -4
index 1652aa7..7cd5531 100755
@@ -169,8 +169,8 @@ else
 		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3, "Mailer-Daemon")}' \
 		    $LTPTMP/tst_mail.res)
 	else
-		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5, "MailDelivery(Subsys|System)")}' \
-		    $LTPTMP/tst_mail.res)
+		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5,
+		    "MailDelivery(Subsys|System|Syst)")}' $LTPTMP/tst_mail.res)
 	fi
 
 	##################################################################
@@ -250,8 +250,8 @@ else
 		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3, "Mailer-Daemon")}' \
 		    $LTPTMP/tst_mail.res)
 	else
-		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5, "MailDelivery(Subsys|System)")}' \
-		    $LTPTMP/tst_mail.res)
+		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5,
+		    "MailDelivery(Subsys|System|Syst)")}' $LTPTMP/tst_mail.res)
 	fi
 	##################################################################
 	# In this testcase, mail will get "Returnedmail:", while mailx will
Signature · 1 line
1.8.3.1