Added Message-Id to messages in test suite.
[mmh] / test / repl / test-repl
index d9c39a1..29383f9 100755 (executable)
@@ -61,8 +61,8 @@ check $expected $actual
 # check -version
 case `repl -v` in
   repl\ --*) ;;
-  *           ) printf "$0: repl -v generated unexpected output\n" >&2
-                failed=`expr ${failed:-0} + 1`;;
+  *        ) printf '%s: repl -v generated unexpected output\n' "$0" >&2
+             failed=`expr ${failed:-0} + 1`;;
 esac
 
 # check unknown switch
@@ -72,7 +72,7 @@ run_test "repl -nonexistent" 'repl: -nonexistent unknown'
 run_test "repl" 'repl: no cur message'
 
 
-printf "Local-Mailbox: mymailbox@localhost%s\n" >> $MH
+printf 'Local-Mailbox: mymailbox@localhost\n' >> $MH
 
 # check -cc me
 cat >$expected <<EOF
@@ -81,6 +81,8 @@ To: Test1 <test1@example.com>
 cc: mymailbox@localhost
 Fcc: +outbox
 Subject: Re: Testing message 1
+In-reply-to: 1@test.nmh
+References: 1@test.nmh
 Comments: In-reply-to Test1 <test1@example.com>
    message dated "Fri, 29 Sep 2006 00:00:00."
 --------
@@ -96,6 +98,8 @@ To: Test1 <test1@example.com>
 cc: 
 Fcc: +outbox
 Subject: Re: Testing message 1
+In-reply-to: 1@test.nmh
+References: 1@test.nmh
 Comments: In-reply-to Test1 <test1@example.com>
    message dated "Fri, 29 Sep 2006 00:00:00."
 --------
@@ -106,7 +110,7 @@ check $expected $actual
 
 # check -cc me with Local- and Alternate-Mailbox addtions, Bug #36635:
 # -nocc me doesn't account for Alternate-Mailboxes.
-printf "Alternate-Mailboxes: user@example.com\n" >> $MH
+printf 'Alternate-Mailboxes: user@example.com\n' >> $MH
 
 cat >$expected <<EOF
 From: mymailbox@localhost
@@ -114,6 +118,8 @@ To: Test1 <test1@example.com>
 cc: mymailbox@localhost
 Fcc: +outbox
 Subject: Re: Testing message 1
+In-reply-to: 1@test.nmh
+References: 1@test.nmh
 Comments: In-reply-to Test1 <test1@example.com>
    message dated "Fri, 29 Sep 2006 00:00:00."
 --------
@@ -131,6 +137,8 @@ To: Test1 <test1@example.com>
 cc: 
 Fcc: +outbox
 Subject: Re: Testing message 1
+In-reply-to: 1@test.nmh
+References: 1@test.nmh
 Comments: In-reply-to Test1 <test1@example.com>
    message dated "Fri, 29 Sep 2006 00:00:00."
 --------