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 3DF60429E26
\r
6 for <notmuch@notmuchmail.org>; Thu, 6 Oct 2011 17:11:03 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 96ft+ccnCE02 for <notmuch@notmuchmail.org>;
\r
16 Thu, 6 Oct 2011 17:11:02 -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 13C24431FB6
\r
21 for <notmuch@notmuchmail.org>; Thu, 6 Oct 2011 17:11:01 -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 p970ApJr021798
\r
26 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);
\r
27 Thu, 6 Oct 2011 21:10:52 -0300
\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)
\r
29 (envelope-from <bremner@unb.ca>)
\r
30 id 1RBy1a-0008Ur-Ul; Thu, 06 Oct 2011 21:10:50 -0300
\r
31 From: David Bremner <david@tethera.net>
\r
32 To: Jesse Rosenthal <jrosenthal@jhu.edu>,
\r
33 Jameson Graef Rollins <jrollins@finestructure.net>,
\r
34 Notmuch Mail <notmuch@notmuchmail.org>
\r
35 Subject: Re: tag sharing
\r
36 In-Reply-To: <m1obxt3lcv.fsf@watt.hwcampus.jhu.edu>
\r
37 References: <1306619520-25730-1-git-send-email-jrollins@finestructure.net>
\r
38 <87hb8eebdi.fsf@servo.factory.finestructure.net>
\r
39 <87pqmyn224.fsf@servo.factory.finestructure.net>
\r
40 <87zklyjshd.fsf@yoom.home.cworth.org>
\r
41 <87sjrng5k3.fsf@servo.factory.finestructure.net>
\r
42 <87oc2bjgrs.fsf@yoom.home.cworth.org>
\r
43 <8762oigc0y.fsf@servo.factory.finestructure.net>
\r
44 <87boya98sf.fsf@gogo.home>
\r
45 <87vcwg2p2m.fsf@servo.factory.finestructure.net>
\r
46 <87wrcijn1w.fsf@zancas.localnet>
\r
47 <m17h4i8dcj.fsf@watt.hwcampus.jhu.edu>
\r
48 <87ipo2td84.fsf@zancas.localnet>
\r
49 <m1sjn53npl.fsf@watt.hwcampus.jhu.edu>
\r
50 <87zkhduax2.fsf@convex-new.cs.unb.ca>
\r
51 <m1obxt3lcv.fsf@watt.hwcampus.jhu.edu>
\r
52 User-Agent: Notmuch/0.9_rc1-42-g76fdca8 (http://notmuchmail.org) Emacs/23.3.1
\r
53 (x86_64-pc-linux-gnu)
\r
54 Date: Thu, 06 Oct 2011 21:10:50 -0300
\r
55 Message-ID: <8762k1u0dx.fsf@zancas.localnet>
\r
57 Content-Type: text/plain; charset=us-ascii
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.13
\r
61 List-Id: "Use and development of the notmuch mail system."
\r
62 <notmuch.notmuchmail.org>
\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
66 List-Post: <mailto:notmuch@notmuchmail.org>
\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
70 X-List-Received-Date: Fri, 07 Oct 2011 00:11:03 -0000
\r
72 On Thu, 06 Oct 2011 16:40:00 -0400, Jesse Rosenthal <jrosenthal@jhu.edu> wrote:
\r
73 > On Thu, 06 Oct 2011 17:23:21 -0300, David Bremner <david@tethera.net> wrote:
\r
74 > > What doesn't work is searches for the whole namespace "notmuch search
\r
75 > > tag:bremner.*" will return nothing, even though "notmuch search
\r
76 > > tag:bremner.to-fix" does.
\r
78 > A simple shell way to do this would be
\r
80 > notmuch search-tags | grep "^bremner\." | xargs -I {} notmuch search tag:{}
\r
83 Ah thanks, that is not so bad. It turns out to be literally a one line
\r
84 change to add a query argument for notmuch-dump, _except_ that notmuch
\r
85 dump already uses the first command line argument as an output file
\r
86 name. I think I will start a seperate thread about that. If you want to
\r
87 test, this works OK, except the output is put in a file named after the
\r
90 diff --git a/notmuch-dump.c b/notmuch-dump.c
\r
91 index 7e7bc17..341207a 100644
\r
92 --- a/notmuch-dump.c
\r
93 +++ b/notmuch-dump.c
\r
94 @@ -40,7 +40,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])
\r
95 if (notmuch == NULL)
\r
98 - query = notmuch_query_create (notmuch, "");
\r
99 + query = notmuch_query_create (notmuch, argc > 0 ? argv[0] : "");
\r
100 if (query == NULL) {
\r
101 fprintf (stderr, "Out of memory\n");
\r