[PATCH 3/3] emacs: Test for thread-outlining
authorDaniel Schoepe <daniel.schoepe@googlemail.com>
Sun, 12 Jun 2011 23:31:20 +0000 (01:31 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:36 +0000 (09:38 -0800)
00/52aa852f01687c916510f0966204eff06ccc1d [new file with mode: 0644]

diff --git a/00/52aa852f01687c916510f0966204eff06ccc1d b/00/52aa852f01687c916510f0966204eff06ccc1d
new file mode 100644 (file)
index 0000000..7b28950
--- /dev/null
@@ -0,0 +1,104 @@
+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 7B71C429E26\r
+       for <notmuch@notmuchmail.org>; Sun, 12 Jun 2011 16:31:39 -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 3Nq2p3qYW-vt for <notmuch@notmuchmail.org>;\r
+       Sun, 12 Jun 2011 16:31:37 -0700 (PDT)\r
+Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
+       [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A353B429E2E\r
+       for <notmuch@notmuchmail.org>; Sun, 12 Jun 2011 16:31:37 -0700 (PDT)\r
+Received: by mail-fx0-f53.google.com with SMTP id 8so2672136fxm.26\r
+       for <notmuch@notmuchmail.org>; Sun, 12 Jun 2011 16:31:37 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer\r
+       :in-reply-to:references;\r
+       bh=pbdDKuxfk07iCrlBy+VhhcrStw0KAhqmJeSLDFTt7Eg=;\r
+       b=LQ163jtIIlRr1ZXhWmejV6fDNCE64JOtW+0XlFUGA1Lw53nerjjOdWNnBeD7Hn+odb\r
+       4WtayrV+HpF8oKLWTPnIH6v4D0KQTkYke7JRJlrLMDIzMNzsMUNB0132RY/2+0osYnXo\r
+       H39P9y05BZtFOrsd2C1L0cA2C0Nq5CZnKLifE=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       b=u7gEVNF6eudFXtxGwbx/T2RWqfNzUOXszcuKP7BjqB+vcVC4LSNaakyqpy3e92jGBG\r
+       U0WdEPA8iXUz6u7VlL6kXqsvJm0NnBAA78DPvYDDcJMYSxJqmop7PYedofIoSKdXwbf/\r
+       e3GYNFNHWSUFosVSqaMsbJA+3ErQu/dUsQb+g=\r
+Received: by 10.223.68.193 with SMTP id w1mr3666444fai.42.1307921497279;\r
+       Sun, 12 Jun 2011 16:31:37 -0700 (PDT)\r
+Received: from localhost (dslb-088-068-023-159.pools.arcor-ip.net\r
+       [88.68.23.159])\r
+       by mx.google.com with ESMTPS id o23sm1864704faa.33.2011.06.12.16.31.35\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 12 Jun 2011 16:31:36 -0700 (PDT)\r
+From: Daniel Schoepe <daniel.schoepe@googlemail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/3] emacs: Test for thread-outlining\r
+Date: Mon, 13 Jun 2011 01:31:20 +0200\r
+Message-Id: <1307921480-17130-4-git-send-email-daniel.schoepe@googlemail.com>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.com>\r
+References: <1307921480-17130-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: Sun, 12 Jun 2011 23:31:39 -0000\r
+\r
+---\r
+ test/emacs                                         |    5 +++++\r
+ .../notmuch-show-thread-outline                    |    7 +++++++\r
+ 2 files changed, 12 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 f2e9598..8d3a3c5 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -31,6 +31,11 @@ maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU316\r
+ test_emacs "(notmuch-show \"$maildir_storage_thread\") (princ (buffer-string))" >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) (switch-to-buffer (notmuch-show-outline-buffer-name)) (princ (buffer-string))" >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\"" "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""\r
+ thread=$(notmuch search --output=threads subject:message-with-invalid-from)\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