[PATCH 3/6] test: emacs: add test to verify that the message being replied to is...
authorPieter Praet <pieter@praet.org>
Sun, 10 Jul 2011 15:55:32 +0000 (17:55 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:02 +0000 (09:39 -0800)
d3/84979ce5c7e95a900d7cb93270816009fb9827 [new file with mode: 0644]

diff --git a/d3/84979ce5c7e95a900d7cb93270816009fb9827 b/d3/84979ce5c7e95a900d7cb93270816009fb9827
new file mode 100644 (file)
index 0000000..4b03d5b
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <pieter@praet.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0E87B429E35\r
+       for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:27 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ts0MGvI3tkg5 for <notmuch@notmuchmail.org>;\r
+       Sun, 10 Jul 2011 08:56:26 -0700 (PDT)\r
+Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
+ [74.125.82.45])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 745A4429E3E   for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:26 -0700\r
+ (PDT)\r
+Received: by mail-ww0-f45.google.com with SMTP id 40so1521868wwj.2\r
+       for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:26 -0700 (PDT)\r
+Received: by 10.216.235.207 with SMTP id u57mr3537375weq.42.1310313386132;\r
+       Sun, 10 Jul 2011 08:56:26 -0700 (PDT)\r
+Received: from localhost ([109.131.150.231])\r
+       by mx.google.com with ESMTPS id 53sm1407091wel.31.2011.07.10.08.56.24\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 10 Jul 2011 08:56:25 -0700 (PDT)\r
+From: Pieter Praet <pieter@praet.org>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH 3/6] test: emacs: add test to verify that the message being\r
+       replied to is tagged as such\r
+Date: Sun, 10 Jul 2011 17:55:32 +0200\r
+Message-Id: <1310313335-4159-4-git-send-email-pieter@praet.org>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1310313335-4159-1-git-send-email-pieter@praet.org>\r
+References: <1310313335-4159-1-git-send-email-pieter@praet.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 10 Jul 2011 15:56:27 -0000\r
+\r
+When a message is replied to, it should be tagged `replied'.\r
+\r
+Signed-off-by: Pieter Praet <pieter@praet.org>\r
+---\r
+ test/emacs |    4 ++++\r
+ 1 files changed, 4 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index f277653..6479c4e 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -300,6 +300,10 @@ Reply to a message via Emacs with fake SMTP\r
+ EOF\r
+ test_expect_equal_file OUTPUT EXPECTED\r
\r
++test_begin_subtest "Verify that 'replied' tag is added to reply's parent message."\r
++output=$(notmuch search 'tag:replied' | notmuch_search_sanitize)\r
++test_expect_equal "$output" "thread:XXX   2000-01-01 [1/2] Notmuch Test Suite; Testing message sent via SMTP (inbox replied)"\r
++\r
+ test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"\r
+ # save as archive to test that Emacs does not re-compress .gz\r
+ test_emacs '(let ((standard-input "\"attachment1.gz\""))\r
+-- \r
+1.7.5.4\r
+\r