Re: [PATCH 2/2] search --output=files: Output all filenames for each matching message
authorCarl Worth <cworth@cworth.org>
Tue, 28 Jun 2011 19:12:52 +0000 (12:12 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:47 +0000 (09:38 -0800)
bb/cd61462183decae42599e301ec8b5c2ce73d88 [new file with mode: 0644]

diff --git a/bb/cd61462183decae42599e301ec8b5c2ce73d88 b/bb/cd61462183decae42599e301ec8b5c2ce73d88
new file mode 100644 (file)
index 0000000..6d144e3
--- /dev/null
@@ -0,0 +1,106 @@
+Return-Path: <cworth@cworth.org>\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 0A5D4429E2A\r
+       for <notmuch@notmuchmail.org>; Tue, 28 Jun 2011 12:12:55 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.01\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
+       tests=[T_MIME_NO_TEXT=0.01] 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 eKk3FCsKMPum for <notmuch@notmuchmail.org>;\r
+       Tue, 28 Jun 2011 12:12:54 -0700 (PDT)\r
+Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3FD71429E25\r
+       for <notmuch@notmuchmail.org>; Tue, 28 Jun 2011 12:12:54 -0700 (PDT)\r
+Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
+       by arlo.cworth.org (Postfix) with ESMTP id 1401329A645;\r
+       Tue, 28 Jun 2011 12:12:53 -0700 (PDT)\r
+Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
+       id 02CD4254157; Tue, 28 Jun 2011 12:12:53 -0700 (PDT)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: Mark Anderson <ma.skies@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 2/2] search --output=files: Output all filenames for each\r
+       matching message\r
+In-Reply-To: <878vsqdd4w.fsf@gmail.com>\r
+References: <878vsqdd4w.fsf@gmail.com>\r
+User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i486-pc-linux-gnu)\r
+Date: Tue, 28 Jun 2011 12:12:52 -0700\r
+Message-ID: <87fwmtahxn.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\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: Tue, 28 Jun 2011 19:12:55 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Fri, 24 Jun 2011 17:26:55 -0600, Mark Anderson <ma.skies@gmail.com> wrot=\r
+e:\r
+> Messages in the database can have multiple files associated with a\r
+> single message-id, but until now only one filename for each message\r
+> has been reported by "notmuch search --output=3Dfiles"\r
+\r
+Hi Mark,\r
+\r
+Thanks for contributing this patch!\r
+\r
+I know from a conversation we had in IRC that you needed this feature to\r
+track down a bug you were hitting. Thanks for going the extra mile to\r
+write a new test case and a complete patch for the new feature.\r
+\r
+I think the only thing I would like to see in addition is an update to\r
+the documentation to make it explicit that --output=3Dfiles will emit all\r
+filenames for a message that has more than one filename.\r
+\r
+> Perhaps someone can offer a little help making the "separator" code\r
+> tighter, but this works.\r
+\r
+It's amazing how painful it is to get the corner cases right here, isn't\r
+it? It's almost enough to make me wish that we allowed trailing\r
+separators as a standard element of style in conventional prose. [*]\r
+\r
+=2DCarl\r
+\r
+[*] Though if I had that wish, I'd also want to wish for the abolition\r
+of any distinction for singular and plural nouns. The code to generate\r
+messages like the following is a pain to write:\r
+\r
+       Processed 1 file in almost no time.\r
+       Added 1 new message to the database. Removed 1 message.\r
+\r
+(And that's without even adding support for translations which would\r
+further complicate this.) Ah, well, the price we pay to make code with\r
+clean output.\r
+\r
+=2D-=20\r
+carl.d.worth@intel.com\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk4KJ7QACgkQ6JDdNq8qSWg8ZACfYx/ZKj/a+ZsGXjvD9d9bWINJ\r
++CgAnRzCX/ISWdcXh+jS9jbP1oNrvIDw\r
+=0VQ+\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r