[PATCH 2b/2] emacs: test: notmuch show without indentation
authorGregor Zattler <telegraph@gmx.net>
Sun, 23 Oct 2011 19:41:01 +0000 (21:41 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:44 +0000 (09:39 -0800)
02/77545fd82c9aa54100edc8490a8c0fb92121c3 [new file with mode: 0644]

diff --git a/02/77545fd82c9aa54100edc8490a8c0fb92121c3 b/02/77545fd82c9aa54100edc8490a8c0fb92121c3
new file mode 100644 (file)
index 0000000..b88ed00
--- /dev/null
@@ -0,0 +1,322 @@
+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 28979431FD0\r
+       for <notmuch@notmuchmail.org>; Sun, 23 Oct 2011 12:41:31 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.701\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.701 tagged_above=-999 required=5\r
+       tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001,\r
+       URIBL_DBL_SPAM=1.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 DzLb6mWmM5vd for <notmuch@notmuchmail.org>;\r
+       Sun, 23 Oct 2011 12:41:30 -0700 (PDT)\r
+Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22])\r
+       by olra.theworths.org (Postfix) with SMTP id B07FA431FB6\r
+       for <notmuch@notmuchmail.org>; Sun, 23 Oct 2011 12:41:29 -0700 (PDT)\r
+Received: (qmail invoked by alias); 23 Oct 2011 19:41:28 -0000\r
+Received: from p54BE2C59.dip.t-dialin.net (EHLO shi.workgroup) [84.190.44.89]\r
+       by mail.gmx.net (mp056) with SMTP; 23 Oct 2011 21:41:28 +0200\r
+X-Authenticated: #19296480\r
+X-Provags-ID: V01U2FsdGVkX19E6PBu5zxErEq7fkfGMCsDpb4/fC0NpQFy7hN6/G\r
+       6oe+wMnQuc/5uB\r
+Received: from grfz by shi.workgroup with local (Exim 4.77)\r
+       (envelope-from <error4me@gmx.de>)\r
+       id 1RI3v7-00055E-Q4; Sun, 23 Oct 2011 21:41:21 +0200\r
+Date: Sun, 23 Oct 2011 21:41:01 +0200\r
+From: Gregor Zattler <telegraph@gmx.net>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Subject: [PATCH 2b/2] emacs: test: notmuch show without indentation\r
+Message-ID: <20111023194101.GH21842@shi.workgroup>\r
+Mail-Followup-To: notmuch <notmuch@notmuchmail.org>\r
+References: <87vcuz2yga.fsf@servo.factory.finestructure.net>\r
+       <1311028119-50637-1-git-send-email-fgeller@gmail.com>\r
+       <1311028119-50637-3-git-send-email-fgeller@gmail.com>\r
+       <20110719105059.GA6472@shi.workgroup>\r
+       <87wrednlzz.fsf@steelpick.2x.cz>\r
+       <20111023164324.GC21842@shi.workgroup>\r
+       <20111023170040.GE21842@shi.workgroup>\r
+       <20111023190938.GF21842@shi.workgroup>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <20111023190938.GF21842@shi.workgroup>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\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: Sun, 23 Oct 2011 19:41:31 -0000\r
+\r
+>From f4b52f67f08880fca41932fe70db72cdf2729ad2 Mon Sep 17 00:00:00 2001\r
+From: Gregor Zattler <telegraph@gmx.net>\r
+Date: Sun, 23 Oct 2011 21:21:47 +0200\r
+Subject: [PATCH] emacs: test: notmuch show without indentation\r
+\r
+Previous behaviour was to indent messages in a thread according\r
+to depth by one space per level.  In\r
+id:1311028119-50637-1-git-send-email-fgeller@gmail.com Felix\r
+Geller proposed a patch in order to turn indentation off.  This\r
+commit tests if instead setting notmuch-indent-messages-width to\r
+`0' does turn off indentation.\r
+---\r
+ test/emacs                                         |    7 +\r
+ ...show-thread-maildir-storage-without-indentation |  215 ++++++++++++++++++++\r
+ 2 files changed, 222 insertions(+), 0 deletions(-)\r
+ create mode 100644 test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index 3571214..6fa0fd4 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -57,6 +57,13 @@ test_emacs "(let ((notmuch-indent-messages-width 1))\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 without indentation"\r
++maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)\r
++test_emacs "(let ((notmuch-indent-messages-width 0))\r
++            (notmuch-show \"$maildir_storage_thread\")\r
++            (test-output))"\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage-without-indentation\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-maildir-storage-without-indentation b/test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation\r
+new file mode 100644\r
+index 0000000..fa2108e\r
+--- /dev/null\r
++++ b/test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation\r
+@@ -0,0 +1,215 @@\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
++Subject: [notmuch] Working with Maildir storage?\r
++To: notmuch@notmuchmail.org\r
++Date: Tue, 17 Nov 2009 14:00:54 -0500\r
++\r
++[ multipart/mixed ]\r
++[ multipart/signed ]\r
++[ text/plain ]\r
++I saw the LWN article and decided to take a look at notmuch.  I'm\r
++currently using mutt and mairix to index and read a collection of\r
++Maildir mail folders (around 40,000 messages total).\r
++\r
++notmuch indexed the messages without complaint, but my attempt at\r
++searching bombed out. Running, for example:\r
++\r
++  notmuch search storage\r
++\r
++Resulted in 4604 lines of errors along the lines of:\r
++\r
++  Error opening\r
++  /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
++  Too many open files\r
++\r
++I'm curious if this is expected behavior (i.e., notmuch does not work\r
++with Maildir) or if something else is going on.\r
++\r
++Cheers,\r
++\r
++[ 5-line signature. Click/Enter to show. ]\r
++-- \r
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++Senior Technologist, Computing and Information Technology\r
++Harvard University School of Engineering and Applied Sciences\r
++\r
++[ application/pgp-signature ]\r
++[ text/plain ]\r
++[ 4-line signature. Click/Enter to show. ]\r
++_______________________________________________\r
++notmuch mailing list\r
++notmuch@notmuchmail.org\r
++http://notmuchmail.org/mailman/listinfo/notmuch\r
++Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)\r
++Subject: Re: [notmuch] Working with Maildir storage?\r
++To: notmuch@notmuchmail.org\r
++Date: Wed, 18 Nov 2009 01:02:38 +0600\r
++\r
++[ multipart/mixed ]\r
++[ multipart/signed ]\r
++[ text/plain ]\r
++\r
++Twas brillig at 14:00:54 17.11.2009 UTC-05 when lars@seas.harvard.edu did gyre and gimble:\r
++\r
++ LK> Resulted in 4604 lines of errors along the lines of:\r
++\r
++ LK>   Error opening\r
++ LK>   /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
++ LK>   Too many open files\r
++\r
++See the patch just posted here.\r
++\r
++[ 2-line signature. Click/Enter to show. ]\r
++-- \r
++http://fossarchy.blogspot.com/\r
++[ application/pgp-signature ]\r
++[ text/plain ]\r
++[ 4-line signature. Click/Enter to show. ]\r
++_______________________________________________\r
++notmuch mailing list\r
++notmuch@notmuchmail.org\r
++http://notmuchmail.org/mailman/listinfo/notmuch\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed unread)\r
++Subject: Re: [notmuch] Working with Maildir storage?\r
++To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
++Cc: notmuch@notmuchmail.org\r
++Date: Tue, 17 Nov 2009 15:33:01 -0500\r
++\r
++[ multipart/mixed ]\r
++[ multipart/signed ]\r
++[ text/plain ]\r
++> See the patch just posted here.\r
++\r
++Is the list archived anywhere?  The obvious archives\r
++(http://notmuchmail.org/pipermail/notmuch/) aren't available, and I\r
++think I subscribed too late to get the patch (I only just saw the\r
++discussion about it).\r
++\r
++It doesn't look like the patch is in git yet.\r
++\r
++-- Lars\r
++\r
++[ 5-line signature. Click/Enter to show. ]\r
++-- \r
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++Senior Technologist, Computing and Information Technology\r
++Harvard University School of Engineering and Applied Sciences\r
++\r
++[ application/pgp-signature ]\r
++[ text/plain ]\r
++[ 4-line signature. Click/Enter to show. ]\r
++_______________________________________________\r
++notmuch mailing list\r
++notmuch@notmuchmail.org\r
++http://notmuchmail.org/mailman/listinfo/notmuch\r
++Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)\r
++Subject: [notmuch] Working with Maildir storage?\r
++To: notmuch@notmuchmail.org\r
++Date: Wed, 18 Nov 2009 02:50:48 +0600\r
++\r
++\r
++Twas brillig at 15:33:01 17.11.2009 UTC-05 when lars at seas.harvard.edu did gyre and gimble:\r
++\r
++ LK> Is the list archived anywhere?  The obvious archives\r
++ LK> (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I\r
++ LK> think I subscribed too late to get the patch (I only just saw the\r
++ LK> discussion about it).\r
++\r
++ LK> It doesn't look like the patch is in git yet.\r
++\r
++Just has been pushed\r
++\r
++[ 10-line signature. Click/Enter to show. ]\r
++-- \r
++http://fossarchy.blogspot.com/\r
++-------------- next part --------------\r
++A non-text attachment was scrubbed...\r
++Name: not available\r
++Type: application/pgp-signature\r
++Size: 834 bytes\r
++Desc: not available\r
++URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/0e33d964/attachment.pgp>\r
++\r
++Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)\r
++Subject: [notmuch] Working with Maildir storage?\r
++To: notmuch@notmuchmail.org\r
++Date: Tue, 17 Nov 2009 13:24:13 -0800\r
++\r
++On Tue, 17 Nov 2009 15:33:01 -0500, Lars Kellogg-Stedman <lars at seas.harvard.edu> wrote:\r
++> > See the patch just posted here.\r
++\r
++I've also pushed a slightly more complicated (and complete) fix to my\r
++private notmuch repository\r
++\r
++git://keithp.com/git/notmuch\r
++\r
++> Is the list archived anywhere?\r
++\r
++Oops. Looks like Carl's mail server is broken. He's traveling to\r
++Barcelona today and so it won't get fixed for a while.\r
++\r
++Thanks to everyone for trying out notmuch!\r
++\r
++-keith\r
++\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)\r
++Subject: Re: [notmuch] Working with Maildir storage?\r
++To: Keith Packard <keithp@keithp.com>\r
++Cc: notmuch@notmuchmail.org\r
++Date: Tue, 17 Nov 2009 19:50:40 -0500\r
++\r
++[ multipart/mixed ]\r
++[ multipart/signed ]\r
++[ text/plain ]\r
++> I've also pushed a slightly more complicated (and complete) fix to my\r
++> private notmuch repository\r
++\r
++The version of lib/messages.cc in your repo doesn't build because it's\r
++missing "#include <stdint.h>" (for the uint32_t on line 466).\r
++\r
++[ 5-line signature. Click/Enter to show. ]\r
++-- \r
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++Senior Technologist, Computing and Information Technology\r
++Harvard University School of Engineering and Applied Sciences\r
++\r
++[ application/pgp-signature ]\r
++[ text/plain ]\r
++[ 4-line signature. Click/Enter to show. ]\r
++_______________________________________________\r
++notmuch mailing list\r
++notmuch@notmuchmail.org\r
++http://notmuchmail.org/mailman/listinfo/notmuch\r
++Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)\r
++Subject: [notmuch] Working with Maildir storage?\r
++To: notmuch@notmuchmail.org\r
++Date: Wed, 18 Nov 2009 02:08:10 -0800\r
++\r
++On Tue, 17 Nov 2009 14:00:54 -0500, Lars Kellogg-Stedman <lars at seas.harvard.edu> wrote:\r
++> I saw the LWN article and decided to take a look at notmuch.  I'm\r
++> currently using mutt and mairix to index and read a collection of\r
++> Maildir mail folders (around 40,000 messages total).\r
++\r
++Welcome, Lars!\r
++\r
++I hadn't even seen that Keith's blog post had been picked up by lwn.net.\r
++That's very interesting. So, thanks for coming and trying out notmuch.\r
++\r
++>   Error opening\r
++>   /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
++>   Too many open files\r
++\r
++Sadly, the lwn article coincided with me having just introduced this\r
++bug, and then getting on a Trans-Atlantic flight. So I fixed the bug\r
++fairly quickly, but there was quite a bit of latency before I could push\r
++the fix out. It should be fixed now.\r
++\r
++> I'm curious if this is expected behavior (i.e., notmuch does not work\r
++> with Maildir) or if something else is going on.\r
++\r
++Notmuch works just fine with maildir---it's one of the things that it\r
++likes the best.\r
++\r
++Happy hacking,\r
++\r
++-Carl\r
++\r
+-- \r
+1.7.7\r
+\r