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 E3CFB429E21 for ; Mon, 10 Oct 2011 18:59:02 -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 uTHtN9qLW7OH for ; Mon, 10 Oct 2011 18:59:02 -0700 (PDT) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id EE5AF429E31 for ; Mon, 10 Oct 2011 18:59:01 -0700 (PDT) Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) by earth-doxen-postvirus (Postfix) with ESMTP id 4B60F66E0468; Mon, 10 Oct 2011 18:58:59 -0700 (PDT) X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new Received: from finestructure.net (samis.ligo-wa.caltech.edu [198.129.208.149]) (Authenticated sender: jrollins) by earth-doxen-submit (Postfix) with ESMTP id 6196466E0208; Mon, 10 Oct 2011 18:58:56 -0700 (PDT) Received: by finestructure.net (Postfix, from userid 1000) id A07FF13AB; Mon, 10 Oct 2011 09:41:49 -0700 (PDT) From: Jameson Graef Rollins To: David Bremner , notmuch Subject: Re: output file argument to notmuch dump. In-Reply-To: <8739f2qhla.fsf@zancas.localnet> References: <8739f5tzxj.fsf@zancas.localnet> <8739f2qhla.fsf@zancas.localnet> User-Agent: Notmuch/0.9_rc1-44-gaf1dc7e (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Mon, 10 Oct 2011 09:41:47 -0700 Message-ID: <87y5wsajec.fsf@washington.ligo-wa.caltech.edu> 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: Tue, 11 Oct 2011 01:59:03 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Sun, 09 Oct 2011 13:01:53 -0300, David Bremner wrote: > Another option occured to me that is consistent at least with notmuch > tag and notmuch show would be to support the following transitional > syntaxes >=20 > notmuch dump file > notmuch dump file [--] search terms > notmuch dump -- search terms >=20 > the first two could then be deprecated, and eventually the syntax >=20 > notmuch dump search terms=20 >=20 > could be enabled. Hey, David. I think this is a fine approach, Go with the transitional "--" separator for one release or so, with a deprecation warning, and then move to the standard form in the release after that. > the question of whether to support=20 >=20 > notmuch dump --file foo.txt >=20 > or something like=20 >=20 > notmuch --stdout=3Dfoo.txt dump >=20 > could be dealt with later. I realize the later probably requires more work, since we would have to replace all print calls with a new function, but I think it's the cleaner and more elegant solution. There's no reason to have an output redirection option for "dump"s and not for any of the other commands. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJOkyBLAAoJEO00zqvie6q879kP/iqDXZIJQegz/kUuGgQAX99t EWkftvKLoPucHERNZDhXw2zuuhpvLhbGrlraNJcabfDtwxNJTQHUMbr+n7Fy8L1R Wm7YoHC9JE7k/TXnT/3n4nZIisAbWI3QmT/Vi56Nm2hoejdFpB3qrAoQJpCswWpk jwkvatCTEGBDP/JZVfuUHCwirgirL6vUJWoJdiHWZZlsQIq0st5BjFlUE+AkVcFy uUEr/ado7xpLl9ezlq8n8GBNtaMZCOpO9i82FubfZN1l+O8glFC9Tm6qZL7/Eiwi 3rQnlz9LQNjAO+3x3IluHxNB0yaCbSi/ONpuNKIEekitN/ocbW7ls9DuBUG0MeoZ zYzIyc0sPFtepWxxybKwIi2NNuG0meIX273GG6883Lg85mqUVLfvHFMlxFOPSPh7 VazYaDETgaLVJ5q3TJfwx+oEWvxHlYUzIzhK3CtWWnqwRa8cEn/uTqYRui3apecU N3PTJ3EGHa50NEXp+xRYl6SwXrUndh3MwF8fF3p2m0Ex3HaNLKgVcBfyZbJffoc4 0T6b90C4zlt/lmHbFOPTH59w7Y7imvWurpLfy+m2Ks6mrrA9IipCHx/fv8P6cKDS Dl+nTG85wrpXoyW1lXLr6raU8/gw9TnvnzhUlUTNtLtSz4yIGPcx6gNiY1fu7Q8T 4/XqqFoALhMDK44q56rt =/o6q -----END PGP SIGNATURE----- --=-=-=--