"snoozing" with notmuch?
[notmuch-archives.git] / bf / 32a8a6a57a73e9e56fa615ed12facc86f067a5
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 767BF429E26\r
6         for <notmuch@notmuchmail.org>; Thu,  6 Oct 2011 17:38:04 -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: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id H+mneYGozk2K for <notmuch@notmuchmail.org>;\r
17         Thu,  6 Oct 2011 17:38:03 -0700 (PDT)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id AE04D431FB6\r
22         for <notmuch@notmuchmail.org>; Thu,  6 Oct 2011 17:38:03 -0700 (PDT)\r
23 Received: by bkbzt12 with SMTP id zt12so4753217bkb.26\r
24         for <notmuch@notmuchmail.org>; Thu, 06 Oct 2011 17:38:02 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
27         :message-id:mime-version:content-type;\r
28         bh=gOLIoNHCUjXKJ2qorfoZPktCvptDFbaJ+sCnGMD53vA=;\r
29         b=RmDHyoEB6dL3V5Io7vxfI/pkFOjkecx71pk784YYA5xFzbsCZ+nKHourEz8NKqyRd1\r
30         C4zugcjjHFSSXWFH5PVwkD/IQLhn61l6fj/uS2RxuNfoRXTpOqCg2aFzxUUSHCxCL62s\r
31         5V0pz3hYL0yAaLUuGzxhJO4O8UGID8PXc8I5M=\r
32 Received: by 10.204.13.148 with SMTP id c20mr936549bka.268.1317947882147;\r
33         Thu, 06 Oct 2011 17:38:02 -0700 (PDT)\r
34 Received: from localhost ([91.144.186.21])\r
35         by mx.google.com with ESMTPS id e14sm7228018bka.0.2011.10.06.17.38.00\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Thu, 06 Oct 2011 17:38:01 -0700 (PDT)\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
39 To: David Bremner <bremner@unb.ca>\r
40 Subject: Re: output file argument to notmuch dump.\r
41 In-Reply-To: <8739f5tzxj.fsf@zancas.localnet>\r
42 References: <8739f5tzxj.fsf@zancas.localnet>\r
43 User-Agent: Notmuch/0.9_rc1-53-g97bfc01 (http://notmuchmail.org) Emacs/23.3.1\r
44         (x86_64-pc-linux-gnu)\r
45 Date: Fri, 07 Oct 2011 04:37:56 +0400\r
46 Message-ID: <87vcs1ljq3.fsf@gmail.com>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain; charset=us-ascii\r
49 Cc: notmuch <notmuch@notmuchmail.org>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Fri, 07 Oct 2011 00:38:04 -0000\r
63 \r
64 On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner <bremner@unb.ca> wrote:\r
65\r
66 > I'd like to add a search term argument to notmuch dump (see\r
67 > id:"87wrcijn1w.fsf@zancas.localnet" and followup for context). The\r
68 > "notmuch" way would be to have\r
69\r
70 >     notmuch dump <search-term>\r
71\r
72 > do the right thing, and that is easy enough _except_ that \r
73\r
74 >    notmuch dump foo\r
75\r
76 > writes the output to file foo.\r
77\r
78 > I see several options.\r
79\r
80 > 1) just delete the output file option from notmuch-dump, and use shell\r
81 >    redirection. So far I don't see a non-contrived example when writing\r
82 >    an output file directly is useful, but maybe that is just a failure\r
83 >    of imagination.\r
84\r
85 > 2) delete the output file option and a global "--write" option that \r
86 >    calls freopen(... stdout). As a bonus(?) this would work for any \r
87 >    notmuch command.\r
88\r
89 > 3) leave the output option alone and implement a --query=foo option for \r
90 >    notmuch dump. This would be the most backward compatible of course,\r
91 >    but also confusing for users.\r
92\r
93 > Thoughts?\r
94\r
95 \r
96 IMHO 1[+2] is the way.  It breaks the dump command interface, but would\r
97 make it consistent with other commands.  Implementing the second option\r
98 (for all commands) is nice but independent and optional.  Also, perhaps\r
99 --output, --output-file or smth would a better name than --write.\r
100 \r
101 Regards,\r
102   Dmitry\r
103 \r
104 > d\r
105\r
106\r
107 > _______________________________________________\r
108 > notmuch mailing list\r
109 > notmuch@notmuchmail.org\r
110 > http://notmuchmail.org/mailman/listinfo/notmuch\r