summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-02-04 12:08:13 -0800
committerCarl Worth <cworth@cworth.org>2010-02-04 12:42:03 -0800
commit9041c1389cfddb79bf4cc268f5cd94d4af41c27a (patch)
tree9f360f2ae3e97f3f9271ed9c1211d7fac4a27541 /test
parentfddd3d831b6a34a47b1e68fcaa1bc63d54240df5 (diff)
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).
Diffstat (limited to 'test')
-rwxr-xr-xtest/notmuch-test19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/notmuch-test b/test/notmuch-test
index 0488b67..33218d2 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 <sender@example.com> wrote:
> support for reply-to"
+printf " Un-munging Reply-To...\t\t"
+generate_message '[from]="Sender <sender@example.com>"' \
+ '[to]="Some List <list@example.com>"' \
+ [subject]=notmuch-reply-test \
+ '[date]="Tue, 05 Jan 2010 15:43:56 -0800"' \
+ '[body]="Un-munging Reply-To"' \
+ '[reply-to]="Evil Munging List <list@example.com>"'
+
+$NOTMUCH new > /dev/null
+execute_expecting "reply id:${gen_msg_id}" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
+Subject: Re: notmuch-reply-test
+To: Sender <sender@example.com>, Some List <list@example.com>
+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 <sender@example.com> wrote:
+> Un-munging Reply-To"
+
cat <<EOF
Notmuch test suite complete.