--- /dev/null
+Return-Path: <bremner@unb.ca>\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 D6071429E25\r
+ for <notmuch@notmuchmail.org>; Sun, 9 Oct 2011 09:02:05 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_MED=-2.3, 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 E7felZr96MO5 for <notmuch@notmuchmail.org>;\r
+ Sun, 9 Oct 2011 09:02:05 -0700 (PDT)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+ (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 442F4431FB6\r
+ for <notmuch@notmuchmail.org>; Sun, 9 Oct 2011 09:02:05 -0700 (PDT)\r
+Received: from zancas.localnet\r
+ (fctnnbsc36w-156034064058.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
+ [156.34.64.58]) (authenticated bits=0)\r
+ by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p99G21X7019567\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
+ Sun, 9 Oct 2011 13:02:02 -0300\r
+Received: from bremner by zancas.localnet with local (Exim 4.76)\r
+ (envelope-from <bremner@unb.ca>)\r
+ id 1RCvpA-0000j1-Vd; Sun, 09 Oct 2011 13:02:00 -0300\r
+From: David Bremner <bremner@unb.ca>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: output file argument to notmuch dump.\r
+In-Reply-To: <8739f5tzxj.fsf@zancas.localnet>\r
+References: <8739f5tzxj.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.9~rc2 (http://notmuchmail.org) Emacs/23.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 09 Oct 2011 13:01:53 -0300\r
+Message-ID: <8739f2qhla.fsf@zancas.localnet>\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: Sun, 09 Oct 2011 16:02:06 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner <bremner@unb.ca> wrote:\r
+>=20\r
+> I'd like to add a search term argument to notmuch dump (see\r
+> id:"87wrcijn1w.fsf@zancas.localnet" and followup for context). The\r
+> "notmuch" way would be to have\r
+>=20\r
+> notmuch dump <search-term>\r
+>=20\r
+> do the right thing\r
+\r
+Another option occured to me that is consistent at least with notmuch\r
+tag and notmuch show would be to support the following transitional\r
+syntaxes\r
+\r
+ notmuch dump file\r
+ notmuch dump file [--] search terms\r
+ notmuch dump -- search terms\r
+\r
+the first two could then be deprecated, and eventually the syntax\r
+\r
+ notmuch dump search terms=20\r
+\r
+could be enabled.\r
+\r
+the question of whether to support=20\r
+\r
+ notmuch dump --file foo.txt\r
+\r
+or something like=20\r
+\r
+ notmuch --stdout=3Dfoo.txt dump\r
+\r
+could be dealt with later.\r
+\r
+David\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iJwEAQECAAYFAk6RxXEACgkQTiiN/0Um85nvzwP+LyGffrnhi2t/LGZNYS2+r5LH\r
+384QwlE5bmG4kNTIJ7aRoAwfH5Z1+kI2C+io7FtPF4MKGeNTn1HRJSukP3DwwG7Q\r
+81UWJTP6aB5F/JX8VT+UWR5koJ/BRq6uF3UREGRC8ZVcQJKK8e5fDtuL3AEUNRIS\r
+8bLMkmGD21IvawyFWqQ=\r
+=0yUR\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r