[PATCH v2 3/3] emacs: Test for thread-outlining
authorDaniel Schoepe <daniel.schoepe@googlemail.com>
Fri, 8 Jul 2011 18:46:57 +0000 (20:46 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:01 +0000 (09:39 -0800)
94/0e36f8c9ed11fc3e3668a5fb48649b55f49066 [new file with mode: 0644]

diff --git a/94/0e36f8c9ed11fc3e3668a5fb48649b55f49066 b/94/0e36f8c9ed11fc3e3668a5fb48649b55f49066
new file mode 100644 (file)
index 0000000..261ee51
--- /dev/null
@@ -0,0 +1,101 @@
+Return-Path: <daniel.schoepe@googlemail.com>\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 7BAC1429E2F\r
+       for <notmuch@notmuchmail.org>; Fri,  8 Jul 2011 11:47:15 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, 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 hkOdBCbMzvlo for <notmuch@notmuchmail.org>;\r
+       Fri,  8 Jul 2011 11:47:14 -0700 (PDT)\r
+Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 4829D431FD0\r
+       for <notmuch@notmuchmail.org>; Fri,  8 Jul 2011 11:47:14 -0700 (PDT)\r
+Received: by bwg12 with SMTP id 12so2199993bwg.26\r
+       for <notmuch@notmuchmail.org>; Fri, 08 Jul 2011 11:47:12 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=vAUStobZ6/TCYB4i4Je6fA9BM214eVr1UqWW107h2jA=;\r
+       b=nxfT5AcVC0D2vUl5EwNoNX4E95Gd1KdsunPejVThLiOygexq904e5pVs3GQMyzuLCx\r
+       Vd4R2bhUJL8mgIjaf5qBIdBhGDSJN4cRjdJ854vwQUti27T6lQVH9ZyGRBjgEXVghNM5\r
+       ROMmtLhBCgFTFLgzNuH4zYqyZC/UImz0gjGB4=\r
+Received: by 10.204.7.85 with SMTP id c21mr492444bkc.260.1310150832476;\r
+       Fri, 08 Jul 2011 11:47:12 -0700 (PDT)\r
+Received: from localhost (dslb-178-004-020-175.pools.arcor-ip.net\r
+       [178.4.20.175])\r
+       by mx.google.com with ESMTPS id m6sm5418497fac.1.2011.07.08.11.47.10\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 08 Jul 2011 11:47:11 -0700 (PDT)\r
+From: Daniel Schoepe <daniel.schoepe@googlemail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 3/3] emacs: Test for thread-outlining\r
+Date: Fri,  8 Jul 2011 20:46:57 +0200\r
+Message-Id: <1310150817-15213-4-git-send-email-daniel.schoepe@googlemail.com>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1310150817-15213-1-git-send-email-daniel.schoepe@googlemail.com>\r
+References: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.com>\r
+       <1310150817-15213-1-git-send-email-daniel.schoepe@googlemail.com>\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: Fri, 08 Jul 2011 18:47:15 -0000\r
+\r
+---\r
+ test/emacs                                         |    7 +++++++\r
+ .../notmuch-show-thread-outline                    |    7 +++++++\r
+ 2 files changed, 14 insertions(+), 0 deletions(-)\r
+ create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index 53f455a..1b14280 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -55,6 +55,13 @@ test_emacs "(notmuch-show \"$maildir_storage_thread\")\r
+           (test-output)"\r
+ test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage\r
\r
++test_begin_subtest "Thread outlining in notmuch-show"\r
++maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)\r
++test_emacs "(notmuch-show \"$maildir_storage_thread\") (notmuch-show-outline)\r
++         (switch-to-buffer notmuch-show-outline-buffer)\r
++         (test-output)"\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-outline\r
++\r
+ test_begin_subtest "notmuch-show for message with invalid From"\r
+ add_message "[subject]=\"message-with-invalid-from\"" \\r
+           "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""\r
+diff --git a/test/emacs.expected-output/notmuch-show-thread-outline b/test/emacs.expected-output/notmuch-show-thread-outline\r
+new file mode 100644\r
+index 0000000..b210ba7\r
+--- /dev/null\r
++++ b/test/emacs.expected-output/notmuch-show-thread-outline\r
+@@ -0,0 +1,7 @@\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu> - 2009-11-17\r
++ Mikhail Gusarov <dottedmag@dottedmag.net> - 2009-11-17\r
++  Lars Kellogg-Stedman <lars@seas.harvard.edu> - 2009-11-17\r
++   "Mikhail Gusarov" <dottedmag@dottedmag.net> - 2009-11-17\r
++   "Keith Packard" <keithp@keithp.com> - 2009-11-17\r
++    Lars Kellogg-Stedman <lars@seas.harvard.edu> - 2009-11-18\r
++ "Carl Worth" <cworth@cworth.org> - 2009-11-18\r
+-- \r
+1.7.5.4\r
+\r