From: Jameson Graef Rollins Date: Thu, 22 Nov 2012 16:15:01 +0000 (+1600) Subject: Re: [PATCH 2/3] cli: all search mode to include msg-ids with JSON output X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a91f1c19dc424953af1061c0dd99997ba22019d5;p=notmuch-archives.git Re: [PATCH 2/3] cli: all search mode to include msg-ids with JSON output --- diff --git a/47/e0ba392b12d0da797a012ce8745d9780e87bbf b/47/e0ba392b12d0da797a012ce8745d9780e87bbf new file mode 100644 index 000000000..daaed1f55 --- /dev/null +++ b/47/e0ba392b12d0da797a012ce8745d9780e87bbf @@ -0,0 +1,102 @@ +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 A2F6D431FBD + for ; Thu, 22 Nov 2012 08:15:24 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.29 +X-Spam-Level: +X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3, 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 Vk6Hv9b7YFVG for ; + Thu, 22 Nov 2012 08:15:23 -0800 (PST) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id F01FD431FB6 + for ; Thu, 22 Nov 2012 08:15:22 -0800 (PST) +Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by earth-doxen-postvirus (Postfix) with ESMTP id 7AA5566E00DE; + Thu, 22 Nov 2012 08:15:20 -0800 (PST) +X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new +Received: from finestructure.net + (108-67-137-54.lightspeed.mmphtn.sbcglobal.net [108.67.137.54]) + (Authenticated sender: jrollins) + by earth-doxen-submit (Postfix) with ESMTP id 6342E66E0456; + Thu, 22 Nov 2012 08:15:09 -0800 (PST) +Received: by finestructure.net (Postfix, from userid 1000) + id 89EA6616F8; Thu, 22 Nov 2012 08:15:04 -0800 (PST) +From: Jameson Graef Rollins +To: Mark Walters , notmuch@notmuchmail.org +Subject: Re: [PATCH 2/3] cli: all search mode to include msg-ids with JSON + output +In-Reply-To: <1352487491-31512-3-git-send-email-markwalters1009@gmail.com> +References: <1352487491-31512-1-git-send-email-markwalters1009@gmail.com> + <1352487491-31512-3-git-send-email-markwalters1009@gmail.com> +User-Agent: Notmuch/0.14+106~ga54bb5f (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Thu, 22 Nov 2012 08:15:01 -0800 +Message-ID: <87y5hty5q2.fsf@servo.finestructure.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha256; 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: Thu, 22 Nov 2012 16:15:24 -0000 + +--=-=-= + +On Fri, Nov 09 2012, Mark Walters wrote: +> This adds a --output=with-ids option which gives similar output to the +> normal search summary output but with a list of message ids +> too. Currently this is not implemented for text format. + +Hey, Mark. Very nit-picky comment here, but I'm not sure "with-ids" is +an appropriate name for an output type. "with-ids" sounds like a +modifier, as opposed to a output type unto itself. + +But I wonder if this separate output type is really necessary. Can the +emacs interface just make two separate search calls to the binary when +constructing the buffer, one with --output=summary and one with +--output=messages? Wouldn't that provide all the needed info? I guess +there would still be a race condition, especially for really long search +results, but I wonder if the calls could actually be made in parallel at +the same time. Maybe that would require more work. Sorry, just +thinking out loud here... + +jamie. + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iQIcBAEBCAAGBQJQrk+GAAoJEO00zqvie6q8ydcQAI0OcoO+0M9tsdqrpFcNcvlV +2KhWowIQE19dLsYzixxsGOWLJDuC2UTjV4PUBk1k+e2KfiqJpWxIjhU5lFXG5amW +HgGK1+9Vk84q80GNe65aDK9OSTEtT+M6BKihxmToA+nr3Ez3tZpBh+kytYKLyORs +FPErPMVRnoAyaomykZ/zgvhPiTpNPP8In4pUHwsC7lkQP8FxegnoQhA/6NfKwfNY +3o4+Z9HwEjSEntRKPOOSi1ujkRlx5RGyD1nD6FSoTVt2KJE5KSAEuWEJ67IsFyxV +V2aXciGMiLD7DgLeBcm/0kSo/8qUazK5HH7fYTPzoOn1la/ATF31t5iq/SEKDHvZ +sQ1R9qnjdfIW87Y9PsQhv11v06dqI8V1KjvtrFIV4HPinhJd1j20KMQwhhvlrx8m +Fbh4oGOhgEyjQ1E356hgi4Wu426o2uKpHjSl05lDlkEPw5zv5mhKQYR2wbMcitVB +v30+lJFC7XLnI7aEPXBf33VaTR+qtBt9KjQbt1/6hQkV2Ur05aWSaA4LtVPK8HkK +s458Bn4cb6G1at5FzxgI6ZyxppqhdBClTWq/wC02nHsw11jeaaQQwoZsTl/s1XJc +xXI6JHdjxse2obW+1zinOr1OlrOmVKj7oLmxKrBdZo7k2LfLk76HgG3MaB7nkXRp +xnbpls5rzijhkguR7Gmk +=KUXv +-----END PGP SIGNATURE----- +--=-=-=--