From: Carl Worth Date: Thu, 4 Feb 2010 20:08:13 +0000 (-0800) Subject: notmuch-test: Test "notmuch reply" with a reply-to-munged mail X-Git-Tag: 0.1~123 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9041c1389cfddb79bf4cc268f5cd94d4af41c27a;p=notmuch.git notmuch-test: Test "notmuch reply" with a reply-to-munged mail This is a test for the recently added feature where we detect that the reply-to address already exists in the To: or Cc: header so will already be replied to. In this case we want to include the From: address in our reply, (where, otherwise we would use the Reply-To address *instead* of the address in the From header). --- diff --git a/test/notmuch-test b/test/notmuch-test index 0488b67a..33218d24 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -395,6 +395,25 @@ References: <${gen_msg_id}> On Tue, 05 Jan 2010 15:43:56 -0800, Sender wrote: > support for reply-to" +printf " Un-munging Reply-To...\t\t" +generate_message '[from]="Sender "' \ + '[to]="Some List "' \ + [subject]=notmuch-reply-test \ + '[date]="Tue, 05 Jan 2010 15:43:56 -0800"' \ + '[body]="Un-munging Reply-To"' \ + '[reply-to]="Evil Munging List "' + +$NOTMUCH new > /dev/null +execute_expecting "reply id:${gen_msg_id}" "From: Notmuch Test Suite +Subject: Re: notmuch-reply-test +To: Sender , Some List +Bcc: test_suite@notmuchmail.org +In-Reply-To: <${gen_msg_id}> +References: <${gen_msg_id}> + +On Tue, 05 Jan 2010 15:43:56 -0800, Sender wrote: +> Un-munging Reply-To" + cat <