Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 0c / 314788ab2e226cf58a3d03524fe931c739d70b
1 Return-Path: <prvs=jrosenthal=73207fb16@jhu.edu>\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 53DDC4196F2\r
6         for <notmuch@notmuchmail.org>; Mon,  3 May 2010 12:32:11 -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: -1.5\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.5 tagged_above=-999 required=5\r
12         tests=[BAYES_50=0.8, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham\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 JWaLIge7R3vI for <notmuch@notmuchmail.org>;\r
16         Mon,  3 May 2010 12:32:10 -0700 (PDT)\r
17 Received: from ipex4.johnshopkins.edu (ipex4.johnshopkins.edu\r
18         [128.220.161.141])\r
19         by olra.theworths.org (Postfix) with ESMTP id EE7B14196F0\r
20         for <notmuch@notmuchmail.org>; Mon,  3 May 2010 12:32:09 -0700 (PDT)\r
21 X-IronPort-Anti-Spam-Filtered: true\r
22 X-IronPort-Anti-Spam-Result: AvsEAJDB3kuA3DZF/2dsb2JhbACdJXG0aIhehRIE\r
23 X-IronPort-AV: E=Sophos;i="4.52,320,1270440000"; d="scan'208";a="361787539"\r
24 Received: from watt.gilman.jhu.edu ([128.220.54.69])\r
25         by ipex4.johnshopkins.edu with ESMTP/TLS/ADH-AES256-SHA;\r
26         03 May 2010 15:32:09 -0400\r
27 Received: by watt.gilman.jhu.edu (Postfix, from userid 502)\r
28         id 19DD1502AD8; Mon,  3 May 2010 15:32:09 -0400 (EDT)\r
29 From: Jesse Rosenthal <jrosenthal@jhu.edu>\r
30 To: Carl Worth <cworth@cworth.org>,\r
31         Jameson Rollins <jrollins@finestructure.net>,\r
32         David Bremner <bremner@unb.ca>, Notmuch Mail <notmuch@notmuchmail.org>\r
33 Subject: Re: bug tracking\r
34 In-Reply-To: <87ocgwkdpf.fsf@yoom.home.cworth.org>\r
35 References: <87d3xr8p6m.fsf@servo.finestructure.net>\r
36         <87wrvz2xt5.fsf@convex-new.cs.unb.ca>\r
37         <87sk6icbh2.fsf@yoom.home.cworth.org>\r
38         <87wrvrzqca.fsf@servo.finestructure.net>\r
39         <87ocgwkdpf.fsf@yoom.home.cworth.org>\r
40 User-Agent: Notmuch/0.3.1-18-g688e1e7 (http://notmuchmail.org) Emacs/23.1.1\r
41         (i386-apple-darwin9.7.0)\r
42 Date: Mon, 03 May 2010 15:32:09 -0400\r
43 Message-ID: <m1k4rkkchy.fsf@watt.gilman.jhu.edu>\r
44 MIME-Version: 1.0\r
45 Content-Type: text/plain; charset=us-ascii\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Mon, 03 May 2010 19:32:11 -0000\r
59 \r
60 On Mon, 03 May 2010 12:06:04 -0700, Carl Worth <cworth@cworth.org> wrote:\r
61 > But I *am* tracking things. The only real problems are:\r
62\r
63 >   1. People don't have visibility into my tracking efforts\r
64\r
65 >   2. We can't collaborate on the tracking efforts.\r
66\r
67 > So I think the various tag-sharing prototypes being worked on right now\r
68 > are extremely interesting.\r
69 \r
70 Well, this is as good a time to make an announcement as any. I have a\r
71 prototype, nm-remote, in its early stages available here:\r
72 \r
73 git clone http://jkr.acm.jhu.edu/git/nm-remote.git\r
74 \r
75 It requires the notmuch python bindings. You should be able to just run\r
76 it from its directory.\r
77 \r
78 Right now, nm-remote has 4 subcommands: `add', `push', `pull',\r
79 `history'.\r
80 \r
81 1) `nm-remote add --(src|dest) <name> <path>':\r
82 \r
83 "name" is the namespace you give to a certain source (for pulling) or\r
84 destination (for pushing). The path can either be a file path or, for\r
85 pulling, a http url.\r
86 \r
87 Note that this alters ~/.notmuch-config. It will write a backup of your\r
88 original file, just in case.\r
89 \r
90 2) `nm-remote push <name>', `nm-remote push <name> <file>'\r
91 \r
92 This will push all tags under the "name" namespace to the file you have\r
93 set in you have set in your config file by `add --dest' (or by hand). If\r
94 you specify the file here, it will not check the config file.\r
95 \r
96 The tags it writes to the file will be all those under the namespace\r
97 "name". So if Carl keeps some tags under "public.bug", "public.queue",\r
98 etc, it will write those to a file, without the namespace.\r
99 \r
100 The file format will keep track of bugs both added and removed for\r
101 message ids, the time they were added, and by whom. See here for an\r
102 example: http://jkr.acm.jhu.edu/practice.tags\r
103 \r
104 I'd like to add the ability to push over ssh.\r
105 \r
106 3) `nm-remote pull <name>', `nm-remote pull <name> <path>'\r
107 \r
108 This will pull from the "name" you have set in your config file by `add\r
109 --src' (or by hand). Whatever name you set will be the namespace for the\r
110 tags. So, if you've named the public tags that Carl pushed above\r
111 "cworth", they will show up as "cworth.bug", "cworth.queued", etc.\r
112 \r
113 If you've explicitly specified the path, it won't check your config\r
114 file. Note, though, that pulling from different files to the same\r
115 namespace could have strange results. Best to keep it consistent for\r
116 now.\r
117 \r
118 NOTE: pull opens your notmuch db up for writing. Make sure to dump first.\r
119 \r
120 Note also that the numbers that it announces of how many tags have been\r
121 added or removed are not exactly accurate at the moment. This has no\r
122 effect on operation.\r
123 \r
124 I'd like to add the ability to pull over ssh.\r
125 \r
126 4) `nm-remote history <name> <msg-id>'\r
127 \r
128 I just added this. "name" has to be a pulling source. So, if I have set\r
129 up Carl's public tags as my "cworth" name-space, typing \r
130 `nm-remote history cworth <msg-id>' should give me all the changes to\r
131 the tag.\r
132 \r
133 PLEASE NOTE: This is just a prototype, based on some discussions with\r
134 David B. and a bit of playing around online. I'd expect the commands and\r
135 the file format to change. Ideally, once we get it straightened out, the\r
136 functionality could be rewritten in C down the line and included in\r
137 "notmuch" under the "remote" command. If you're interested, I'd be happy\r
138 to chat about my further ideas for it in this thread, or over IRC.\r
139 \r
140 All best,\r
141 Jesse\r
142 \r
143 \r
144 \r
145 \r
146 \r