[PATCH 09/13] test: `notmuch-show-advance-and-archive' with invisible signature
authorThomas Jost <schnouki@schnouki.net>
Mon, 3 Oct 2011 16:47:23 +0000 (18:47 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:34 +0000 (09:39 -0800)
d7/33c0a9cb6ff787cfe885b7f8b03c4a3e802de7 [new file with mode: 0644]

diff --git a/d7/33c0a9cb6ff787cfe885b7f8b03c4a3e802de7 b/d7/33c0a9cb6ff787cfe885b7f8b03c4a3e802de7
new file mode 100644 (file)
index 0000000..fb0d9b8
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <schnouki@schnouki.net>\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 CA7C7431FB6\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Oct 2011 09:48:50 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
+       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 IoOfLTX-R26l for <notmuch@notmuchmail.org>;\r
+       Mon,  3 Oct 2011 09:48:50 -0700 (PDT)\r
+Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
+       by olra.theworths.org (Postfix) with ESMTP id B8CC3429E30\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Oct 2011 09:48:45 -0700 (PDT)\r
+Received: from localhost.localdomain (thor.loria.fr [152.81.12.250])\r
+       by ks3536.kimsufi.com (Postfix) with ESMTPSA id C9D386A06B7;\r
+       Mon,  3 Oct 2011 18:48:44 +0200 (CEST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
+       s=key-schnouki; t=1317660524;\r
+       bh=5B+wcXIIm++OmSqV2ie3Wgs2zdpnej0Oo91nvzW6GUY=;\r
+       h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\r
+       In-Reply-To:References;\r
+       b=c3TgS8zSGYlw1P7tOjeEXrhS7zEZ8quXGXAdUazI6Yhj8ZcIa60IljIrmPE9vZ3Mo\r
+       t51TuGsZ9kklcoAVi2lRahZ6XA01AbgDOgtwZNbA3g+7i08sI3V2Dx3jGmqFFw1ZgV\r
+       Oh+Fie4vvZqDm7IAGRqo3dSCd+mmlfYjGgCTaVyo=\r
+From: Thomas Jost <schnouki@schnouki.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 09/13] test: `notmuch-show-advance-and-archive' with invisible\r
+       signature\r
+Date: Mon,  3 Oct 2011 18:47:23 +0200\r
+Message-Id: <1317660447-27520-10-git-send-email-schnouki@schnouki.net>\r
+X-Mailer: git-send-email 1.7.6.4\r
+In-Reply-To: <1317660447-27520-1-git-send-email-schnouki@schnouki.net>\r
+References: <1317660447-27520-1-git-send-email-schnouki@schnouki.net>\r
+In-Reply-To: <871uuuywtt.fsf@convex-new.cs.unb.ca>\r
+References: <871uuuywtt.fsf@convex-new.cs.unb.ca>\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: Mon, 03 Oct 2011 16:48:51 -0000\r
+\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+\r
+Add Emacs test to check that `notmuch-show-advance-and-archive'\r
+works for the last message in thread with invisible signature.\r
+---\r
+ test/emacs |   14 ++++++++++++++\r
+ 1 files changed, 14 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index 50958ec..fddb5cf 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -373,4 +373,18 @@ test_emacs "(notmuch-show \"id:$id\") \\r
+             (test-visible-output \"EXPECTED\")"\r
+ test_expect_equal_file EMACS OUTPUT EXPECTED\r
\r
++test_begin_subtest 'notmuch-show-advance-and-archive with invisible signature'\r
++message1='id:20091118010116.GC25380@dottiness.seas.harvard.edu'\r
++message2='id:1258491078-29658-1-git-send-email-dottedmag@dottedmag.net'\r
++test_emacs "(notmuch-search \"$message1 or $message2\")\r
++          (notmuch-test-wait)\r
++          (notmuch-search-show-thread)\r
++          (goto-char (point-max))\r
++          (redisplay)\r
++          (notmuch-show-advance-and-archive)\r
++          (test-output)"\r
++test_emacs "(notmuch-show \"$message2\")\r
++          (test-output \"EXPECTED\")"\r
++test_expect_equal_file EMACS OUTPUT EXPECTED\r
++\r
+ test_done\r
+-- \r
+1.7.6.4\r
+\r