[PATCH 2/4] emacs: test notmuch-indent-messages-width default
authorGregor Zattler <telegraph@gmx.net>
Thu, 24 Nov 2011 22:03:22 +0000 (23:03 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:23 +0000 (09:40 -0800)
40/1b56c467309fd0c80d767bfdf58e30f998d07a [new file with mode: 0644]

diff --git a/40/1b56c467309fd0c80d767bfdf58e30f998d07a b/40/1b56c467309fd0c80d767bfdf58e30f998d07a
new file mode 100644 (file)
index 0000000..7478a45
--- /dev/null
@@ -0,0 +1,83 @@
+Return-Path: <error4me@gmx.de>\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 3EE2B429E26\r
+       for <notmuch@notmuchmail.org>; Thu, 24 Nov 2011 14:05:29 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.001\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.001 tagged_above=-999 required=5\r
+       tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]\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 CDaIuNDw2krg for <notmuch@notmuchmail.org>;\r
+       Thu, 24 Nov 2011 14:05:28 -0800 (PST)\r
+Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22])\r
+       by olra.theworths.org (Postfix) with SMTP id 3D206431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 24 Nov 2011 14:05:28 -0800 (PST)\r
+Received: (qmail invoked by alias); 24 Nov 2011 22:05:26 -0000\r
+Received: from p54BE4A18.dip.t-dialin.net (EHLO shi.workgroup) [84.190.74.24]\r
+       by mail.gmx.net (mp004) with SMTP; 24 Nov 2011 23:05:26 +0100\r
+X-Authenticated: #19296480\r
+X-Provags-ID: V01U2FsdGVkX1/9+wNNPZD9x/fHTx/qbOgbElKXVq6pzdGZ1O21hj\r
+       S5XOp/KYVmjwGn\r
+Received: from grfz by shi.workgroup with local (Exim 4.77)\r
+       (envelope-from <error4me@gmx.de>)\r
+       id 1RThOw-0001w2-Pp; Thu, 24 Nov 2011 23:04:14 +0100\r
+From: Gregor Zattler <telegraph@gmx.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/4] emacs: test notmuch-indent-messages-width default\r
+Date: Thu, 24 Nov 2011 23:03:22 +0100\r
+Message-Id: <1322172204-6677-3-git-send-email-telegraph@gmx.net>\r
+X-Mailer: git-send-email 1.7.7.3\r
+In-Reply-To: <1322172204-6677-1-git-send-email-telegraph@gmx.net>\r
+References: <87d3ch8xz1.fsf@zancas.localnet>\r
+       <1322172204-6677-1-git-send-email-telegraph@gmx.net>\r
+X-Y-GMX-Trusted: 0\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: Thu, 24 Nov 2011 22:05:29 -0000\r
+\r
+Previous behaviour was to indent messages in a thread according\r
+to depth by one space per level.  This is still the case with\r
+notmuch-indent-messages-width default value `1'.  This test\r
+succeeds if output with default value is same as in "Basic\r
+notmuch-show view in emacs".\r
+---\r
+ test/emacs |    7 +++++++\r
+ 1 files changed, 7 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index 3bf2e29..20d52d8 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -50,6 +50,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 "Basic notmuch-show view in emacs default indentation"\r
++maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)\r
++test_emacs "(let ((notmuch-indent-messages-width 1))\r
++            (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 "notmuch-show for message with invalid From"\r
+ add_message "[subject]=\"message-with-invalid-from\"" \\r
+           "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""\r
+-- \r
+1.7.7.3\r
+\r