X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0f0af4e32a4d734209c16282b63f7cb1094e2699..da0f112f05d57488a7c7f1fcf6a696696d7df385:/test/repl/test-repl?ds=sidebyside diff --git a/test/repl/test-repl b/test/repl/test-repl index 0b5b4839..042bf4ef 100755 --- a/test/repl/test-repl +++ b/test/repl/test-repl @@ -72,7 +72,7 @@ run_test "repl -nonexistent" 'repl: -nonexistent unknown' run_test "repl" 'repl: no cur message' -printf 'Local-Mailbox: mymailbox@localhost\n' >> $MH +printf 'Local-Mailbox: mymailbox@localhost\n' >> "$MH" # check -cc me cat >$expected < 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 message dated "Fri, 29 Sep 2006 00:00:00." -------- @@ -96,6 +98,8 @@ To: Test1 cc: Fcc: +outbox Subject: Re: Testing message 1 +In-reply-to: 1@test.nmh +References: 1@test.nmh Comments: In-reply-to Test1 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 < 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 message dated "Fri, 29 Sep 2006 00:00:00." -------- @@ -131,6 +137,8 @@ To: Test1 cc: Fcc: +outbox Subject: Re: Testing message 1 +In-reply-to: 1@test.nmh +References: 1@test.nmh Comments: In-reply-to Test1 message dated "Fri, 29 Sep 2006 00:00:00." -------- @@ -140,4 +148,35 @@ repl -cc me -nocc me -editor true -nowhatnowproc 1 check $expected $actual +# check quoting of local part of invalid address, Bug #26780 +cat >`mhpath new` < +To: before_auser@example.com, A. User , + after_user@example.com +Date: Fri, 29 Sep 2006 00:00:11 +Message-Id: 11@test.nmh +Subject: Testing message 11 + +This is message number 11 + +EOF + +cat >$expected < +cc: before_auser@example.com, "A. User" , + after_user@example.com +Fcc: +outbox +Subject: Re: Testing message 11 +In-reply-to: 11@test.nmh +References: 11@test.nmh +Comments: In-reply-to Test11 + message dated "Fri, 29 Sep 2006 00:00:11." +-------- +EOF + +repl -cc to -editor true -nowhatnowproc 11 +check $expected $actual + + exit ${failed:-0}