Re: output file argument to notmuch dump.
authorTomi Ollila <tomi.ollila@iki.fi>
Fri, 7 Oct 2011 11:15:39 +0000 (14:15 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:37 +0000 (09:39 -0800)
e5/12ecbb30e3a7c4ad0e44b7373b27a81863a59d [new file with mode: 0644]

diff --git a/e5/12ecbb30e3a7c4ad0e44b7373b27a81863a59d b/e5/12ecbb30e3a7c4ad0e44b7373b27a81863a59d
new file mode 100644 (file)
index 0000000..a0b7fb6
--- /dev/null
@@ -0,0 +1,85 @@
+Return-Path: <tomi.ollila@nixu.com>\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 E0206429E26\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Oct 2011 04:15:44 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 S1BnxXyQh9Vs for <notmuch@notmuchmail.org>;\r
+       Fri,  7 Oct 2011 04:15:44 -0700 (PDT)\r
+Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\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 E5FA3431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Oct 2011 04:15:43 -0700 (PDT)\r
+Received: from taco2.nixu.fi (localhost [127.0.0.1])\r
+       by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
+       p97BFdNQ032191\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);\r
+       Fri, 7 Oct 2011 14:15:39 +0300\r
+Received: (from too@localhost)\r
+       by taco2.nixu.fi (8.14.3/8.14.3/Submit) id p97BFd9L032190;\r
+       Fri, 7 Oct 2011 14:15:39 +0300\r
+X-Authentication-Warning: taco2.nixu.fi: too set sender to\r
+       tomi.ollila@nixu.com using -f\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Jesse Rosenthal <jrosenthal@jhu.edu>\r
+Subject: Re: output file argument to notmuch dump.\r
+References: <8739f5tzxj.fsf@zancas.localnet> <m1wrcht801.fsf@jhu.edu>\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Fri, 07 Oct 2011 14:15:39 +0300\r
+In-Reply-To: <m1wrcht801.fsf@jhu.edu> (Jesse Rosenthal's message of "Fri, 07\r
+       Oct 2011 06:23:58 -0400")\r
+Message-ID: <yf6r52pxdb8.fsf@taco2.nixu.fi>\r
+User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/22.2 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: David Bremner <bremner@unb.ca>, notmuch <notmuch@notmuchmail.org>\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 11:15:45 -0000\r
+\r
+On Fri 07 Oct 2011 13:23, Jesse Rosenthal <jrosenthal@jhu.edu> writes:\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
+The option 2, i.e. optional --write (or -o|--output) should be available;\r
+someone may run notmuch without using environment that provides\r
+redirections (or it is just plain simpler to give the command line option\r
+instead of doing redirections).\r
+\r
+> --Jesse\r
+\r
+Tomi\r