Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / cc / 9461a525f8f8dd4e7c09b18d50f88afcb7370e
1 Return-Path: <bremner@unb.ca>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 5725A429E27\r
6         for <notmuch@notmuchmail.org>; Mon, 10 Oct 2011 19:13:02 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id v0IW26F3QG0z for <notmuch@notmuchmail.org>;\r
16         Mon, 10 Oct 2011 19:13:01 -0700 (PDT)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 0D5A0429E21\r
21         for <notmuch@notmuchmail.org>; Mon, 10 Oct 2011 19:13:00 -0700 (PDT)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034064058.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.64.58]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p9B2CcUq025935\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Mon, 10 Oct 2011 23:12:38 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@unb.ca>)\r
30         id 1RDRpd-0002B7-Uu; Mon, 10 Oct 2011 23:12:37 -0300\r
31 From: David Bremner <bremner@unb.ca>\r
32 To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
33         notmuch <notmuch@notmuchmail.org>\r
34 Subject: Re: output file argument to notmuch dump.\r
35 In-Reply-To: <87y5wsajec.fsf@washington.ligo-wa.caltech.edu>\r
36 References: <8739f5tzxj.fsf@zancas.localnet> <8739f2qhla.fsf@zancas.localnet>\r
37         <87y5wsajec.fsf@washington.ligo-wa.caltech.edu>\r
38 User-Agent: Notmuch/0.9~rc2 (http://notmuchmail.org) Emacs/23.3.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Mon, 10 Oct 2011 23:12:37 -0300\r
41 Message-ID: <87botop97u.fsf@zancas.localnet>\r
42 MIME-Version: 1.0\r
43 Content-Type: text/plain; charset=us-ascii\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Tue, 11 Oct 2011 02:13:02 -0000\r
57 \r
58 On Mon, 10 Oct 2011 09:41:47 -0700, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
59 \r
60 > >    notmuch --stdout=foo.txt dump\r
61 > > \r
62 > > could be dealt with later.\r
63\r
64 > I realize the later probably requires more work, since we would have to\r
65 > replace all print calls with a new function, but I think it's the\r
66 > cleaner and more elegant solution.  There's no reason to have an output\r
67 > redirection option for "dump"s and not for any of the other commands.\r
68 \r
69 As far as I know, freopen(3) makes this a one-liner. I think the hardest\r
70 part of this would be figuring out the name of the option ;)\r
71 \r
72 d\r
73 \r
74 \r
75 \r