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