From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 637A6429E26 for ; Thu, 6 Oct 2011 17:30:27 -0700 (PDT) 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 I9spmCAYGzcC for ; Thu, 6 Oct 2011 17:30:27 -0700 (PDT) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D6B69431FB6 for ; Thu, 6 Oct 2011 17:30:26 -0700 (PDT) Received: from zancas.localnet (fctnnbsc36w-156034064058.pppoe-dynamic.High-Speed.nb.bellaliant.net [156.34.64.58]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p970UP6b024045 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Thu, 6 Oct 2011 21:30:25 -0300 Received: from bremner by zancas.localnet with local (Exim 4.76) (envelope-from ) id 1RByKW-0000KU-P8; Thu, 06 Oct 2011 21:30:24 -0300 From: David Bremner To: notmuch Subject: output file argument to notmuch dump. Date: Thu, 06 Oct 2011 21:20:40 -0300 Message-ID: <8739f5tzxj.fsf@zancas.localnet> User-Agent: Notmuch/0.9_rc1-42-g76fdca8 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) 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: Fri, 07 Oct 2011 00:30:27 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable I'd like to add a search term argument to notmuch dump (see id:"87wrcijn1w.fsf@zancas.localnet" and followup for context). The "notmuch" way would be to have notmuch dump do the right thing, and that is easy enough _except_ that=20 notmuch dump foo writes the output to file foo. I see several options. 1) just delete the output file option from notmuch-dump, and use shell redirection. So far I don't see a non-contrived example when writing an output file directly is useful, but maybe that is just a failure of imagination. 2) delete the output file option and a global "--write" option that=20 calls freopen(... stdout). As a bonus(?) this would work for any=20 notmuch command. 3) leave the output option alone and implement a --query=3Dfoo option for=20 notmuch dump. This would be the most backward compatible of course, but also confusing for users. Thoughts? d --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iJwEAQECAAYFAk6OSBgACgkQTiiN/0Um85nqOQP8DPZODGTJgQcaQfOZMsS+N3lg 6vOEgS/F7d7bAmFSzMa41kVk6JDfDLqDiZzFZJK6hzJ33TZ2YenHGihazJtoxVD/ h0PDCTvhX2T/cUc4iq0mghoAo8ov99pXViHtbdfmXVHqO8lGeB6ecSEEPsGPmYAt EJhc1hXEwoMpZjNiw6Y= =WNgo -----END PGP SIGNATURE----- --=-=-=--