Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 65 / caf28db22420fe636f31ee43eb86b4548872da
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 637A6429E26\r
6         for <notmuch@notmuchmail.org>; Thu,  6 Oct 2011 17:30:27 -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.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 I9spmCAYGzcC for <notmuch@notmuchmail.org>;\r
16         Thu,  6 Oct 2011 17:30:27 -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 D6B69431FB6\r
21         for <notmuch@notmuchmail.org>; Thu,  6 Oct 2011 17:30:26 -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 p970UP6b024045\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Thu, 6 Oct 2011 21:30:25 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@unb.ca>)\r
30         id 1RByKW-0000KU-P8; Thu, 06 Oct 2011 21:30:24 -0300\r
31 From: David Bremner <bremner@unb.ca>\r
32 To: notmuch <notmuch@notmuchmail.org>\r
33 Subject: output file argument to notmuch dump.\r
34 Date: Thu, 06 Oct 2011 21:20:40 -0300\r
35 Message-ID: <8739f5tzxj.fsf@zancas.localnet>\r
36 User-Agent: Notmuch/0.9_rc1-42-g76fdca8 (http://notmuchmail.org) Emacs/23.3.1\r
37         (x86_64-pc-linux-gnu)\r
38 MIME-Version: 1.0\r
39 Content-Type: multipart/signed; boundary="=-=-=";\r
40         micalg=pgp-sha1; protocol="application/pgp-signature"\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Fri, 07 Oct 2011 00:30:27 -0000\r
54 \r
55 --=-=-=\r
56 Content-Transfer-Encoding: quoted-printable\r
57 \r
58 \r
59 I'd like to add a search term argument to notmuch dump (see\r
60 id:"87wrcijn1w.fsf@zancas.localnet" and followup for context). The\r
61 "notmuch" way would be to have\r
62 \r
63     notmuch dump <search-term>\r
64 \r
65 do the right thing, and that is easy enough _except_ that=20\r
66 \r
67    notmuch dump foo\r
68 \r
69 writes the output to file foo.\r
70 \r
71 I see several options.\r
72 \r
73 1) just delete the output file option from notmuch-dump, and use shell\r
74    redirection. So far I don't see a non-contrived example when writing\r
75    an output file directly is useful, but maybe that is just a failure\r
76    of imagination.\r
77 \r
78 2) delete the output file option and a global "--write" option that=20\r
79    calls freopen(... stdout). As a bonus(?) this would work for any=20\r
80    notmuch command.\r
81 \r
82 3) leave the output option alone and implement a --query=3Dfoo option for=20\r
83    notmuch dump. This would be the most backward compatible of course,\r
84    but also confusing for users.\r
85 \r
86 Thoughts?\r
87 \r
88 d\r
89 \r
90 \r
91 \r
92 --=-=-=\r
93 Content-Type: application/pgp-signature\r
94 \r
95 -----BEGIN PGP SIGNATURE-----\r
96 Version: GnuPG v1.4.11 (GNU/Linux)\r
97 \r
98 iJwEAQECAAYFAk6OSBgACgkQTiiN/0Um85nqOQP8DPZODGTJgQcaQfOZMsS+N3lg\r
99 6vOEgS/F7d7bAmFSzMa41kVk6JDfDLqDiZzFZJK6hzJ33TZ2YenHGihazJtoxVD/\r
100 h0PDCTvhX2T/cUc4iq0mghoAo8ov99pXViHtbdfmXVHqO8lGeB6ecSEEPsGPmYAt\r
101 EJhc1hXEwoMpZjNiw6Y=\r
102 =WNgo\r
103 -----END PGP SIGNATURE-----\r
104 --=-=-=--\r