Re: output file argument to notmuch dump.
authorJesse Rosenthal <jrosenthal@jhu.edu>
Fri, 7 Oct 2011 10:23:58 +0000 (06:23 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:37 +0000 (09:39 -0800)
81/476261f7270305fd29f97bf478147eba3989c1 [new file with mode: 0644]

diff --git a/81/476261f7270305fd29f97bf478147eba3989c1 b/81/476261f7270305fd29f97bf478147eba3989c1
new file mode 100644 (file)
index 0000000..8348b7a
--- /dev/null
@@ -0,0 +1,67 @@
+Return-Path: <jrosenthal@jhu.edu>\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 3E83C429E26\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Oct 2011 03:41:10 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.001\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.001 tagged_above=-999 required=5\r
+       tests=[FSL_HELO_NON_FQDN_1=0.001, HELO_NO_DOMAIN=1] 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 oAilIlQrkmFH for <notmuch@notmuchmail.org>;\r
+       Fri,  7 Oct 2011 03:41:09 -0700 (PDT)\r
+X-Greylist: delayed 1029 seconds by postgrey-1.32 at olra;\r
+       Fri, 07 Oct 2011 03:41:09 PDT\r
+Received: from ladybug (li131-231.members.linode.com [69.164.216.231])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B8942431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Oct 2011 03:41:09 -0700 (PDT)\r
+Received: from jkr by ladybug with local (Exim 4.76)\r
+       (envelope-from <jrosenthal@jhu.edu>)\r
+       id 1RC7aw-00086N-3x; Fri, 07 Oct 2011 06:23:58 -0400\r
+From: Jesse Rosenthal <jrosenthal@jhu.edu>\r
+To: David Bremner <bremner@unb.ca>, 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/unknown (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-apple-darwin)\r
+Date: Fri, 07 Oct 2011 06:23:58 -0400\r
+Message-ID: <m1wrcht801.fsf@jhu.edu>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Fri, 07 Oct 2011 10:41:10 -0000\r
+\r
+On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner <bremner@unb.ca> wrote:\r
+> 1) just delete the output file option from notmuch-dump, and use shell\r
+>    redirection. So far I don't see a non-contrived example when writing\r
+>    an output file directly is useful, but maybe that is just a failure\r
+>    of imagination.\r
+> \r
+> 2) delete the output file option and a global "--write" option that \r
+>    calls freopen(... stdout). As a bonus(?) this would work for any \r
+>    notmuch command.\r
+\r
+Either of these seem like the right approach to me. I might favor (1)\r
+just a bit so I don't have to choose between different ways of doing the\r
+same thing, but that's a small point. As Jamie said, they're pretty\r
+much the same.\r
+\r
+--Jesse\r