database error
[notmuch-archives.git] / 17 / 373cbe471c8eeeea82f87c038098319830a9c8
1 Return-Path: <amdragon@mit.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 3258F431FD0\r
6         for <notmuch@notmuchmail.org>; Wed, 28 Dec 2011 17:26:04 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 77AWGBZXcLeT for <notmuch@notmuchmail.org>;\r
16         Wed, 28 Dec 2011 17:26:03 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU\r
18         [18.9.25.12])\r
19         by olra.theworths.org (Postfix) with ESMTP id 97551431FB6\r
20         for <notmuch@notmuchmail.org>; Wed, 28 Dec 2011 17:26:03 -0800 (PST)\r
21 X-AuditID: 1209190c-b7fad6d000000920-8f-4efbc1aac0b4\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id FB.98.02336.AA1CBFE4; Wed, 28 Dec 2011 20:26:03 -0500 (EST)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id pBT1Q2nn007571; \r
27         Wed, 28 Dec 2011 20:26:02 -0500\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pBT1Q0Qw018494\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Wed, 28 Dec 2011 20:26:01 -0500 (EST)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1Rg4lb-0003Ay-EE; Wed, 28 Dec 2011 20:26:47 -0500\r
37 Date: Wed, 28 Dec 2011 20:26:47 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Xavier Maillard <xma@gnu.org>\r
40 Subject: Re: Tagging strategy and latest notmuch\r
41 Message-ID: <20111229012647.GG30150@mit.edu>\r
42 References: <m2lipwb9gg.fsf@kcals.intra.maillard.im>\r
43 MIME-Version: 1.0\r
44 Content-Type: text/plain; charset=us-ascii\r
45 Content-Disposition: inline\r
46 In-Reply-To: <m2lipwb9gg.fsf@kcals.intra.maillard.im>\r
47 User-Agent: Mutt/1.5.21 (2010-09-15)\r
48 X-Brightmail-Tracker:\r
49  H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsUixG6nrrv64G8/g4eNrBbXb85ktnjUvp/d\r
50         gcmjbZqZx7NVt5gDmKK4bFJSczLLUov07RK4MqYdqy44LVzRO385cwPjYf4uRk4OCQETiX/L\r
51         O9kgbDGJC/fWA9lcHEIC+xglNi2ZxwzhbGCU+P/2M1iVkMBJJokt5+IgEksYJZ5PnckEkmAR\r
52         UJVYd/kJWBGbgIbEtv3LGUFsEQFFiQOb9oHFmQWkJb79bgaq5+AQFjCQmHiBAyTMK6Ajsf7L\r
53         d1aQsBDQRb83ZUOEBSVOznzCAtGpJXHj30uwTpApy/+BdXIKmEqcvbMJ7ABRARWJKSe3sU1g\r
54         FJqFpHsWku5ZCN0LGJlXMcqm5Fbp5iZm5hSnJusWJyfm5aUW6Rrq5WaW6KWmlG5iBIUzpyTP\r
55         DsY3B5UOMQpwMCrx8Hoa/vYTYk0sK67MPcQoycGkJMobsAcoxJeUn1KZkVicEV9UmpNafIhR\r
56         goNZSYS3djdQjjclsbIqtSgfJiXNwaIkzqui9c5PSCA9sSQ1OzW1ILUIJivDwaEkwesDjFsh\r
57         waLU9NSKtMycEoQ0EwcnyHAeoOHvD4AMLy5IzC3OTIfIn2JUlBLntQJpFgBJZJTmwfXC0s0r\r
58         RnGgV4R5tUCqeICpCq77FdBgJqDB5879AhlckoiQkmpgbJTWjZq3wHHtk+wdc2avMjvEwqsz\r
59         W9DSNG7P4iSN4jU+257wVeW2bfnwQu2cjtFKv12npWtbN7TJ2vwQ5ivfLPCkyXi3zxupubyc\r
60         anuKs9YsnBXy2YT9cE+GY2XNMZnpyx7eXHWpqeGqQqgJs/LyhV4rZh8NmDC5TfHXJ72Que9/\r
61         bpKbn3EwTomlOCPRUIu5qDgRADKe2KsSAwAA\r
62 Cc: notmuch@notmuchmail.org\r
63 X-BeenThere: notmuch@notmuchmail.org\r
64 X-Mailman-Version: 2.1.13\r
65 Precedence: list\r
66 List-Id: "Use and development of the notmuch mail system."\r
67         <notmuch.notmuchmail.org>\r
68 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
70 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
71 List-Post: <mailto:notmuch@notmuchmail.org>\r
72 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
73 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
74         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
75 X-List-Received-Date: Thu, 29 Dec 2011 01:26:04 -0000\r
76 \r
77 Quoth Xavier Maillard on Dec 28 at 11:46 pm:\r
78 > Hi,\r
79\r
80 > my mail workflow is pretty /basic/ and /raw/. Here it is:\r
81\r
82 > 1a. notmuch new (for consistency sake)\r
83 > 1b. notmuchsync syncs from notmuch tags to my maildir flags (actually, it is to\r
84 > prune is:delete tagged messages)\r
85 \r
86 The synchronization of notmuch tags and maildir flags has been part of\r
87 notmuch for several releases now, so you don't need an external tool\r
88 to do that (unless you have some unusual configuration for it).  You\r
89 can delete is:delete messages reasonably easily from a script (perhaps\r
90 a tagging script or a cron job) using something like\r
91 \r
92   notmuch search --output=files is:delete | xargs rm\r
93 \r
94 (untested, so don't take my word for it.)\r
95 \r
96 > 2. offlineimap syncs with my imap server\r
97 > 3. notmuch new incorporate new messages into the database\r
98 > 4. notmuchsync syncs from my maildirs flags to notmuch\r
99 > 5. (at last) a shell-script is testing/tagging all my messages corpus\r
100 \r
101 As of 0.11 (not 0.10.x, though), the right place to do initial tagging\r
102 is in the .notmuch/hooks/post-new script (there's obviously no harm in\r
103 doing it in a separate script, but if you do it in post-new, notmuch\r
104 will run the script for you).\r
105 \r
106\r
107 > This is a solution I am using for months but I am pretty sure it is not\r
108 > adapted with latest notmuch. Sadly I could not follow the recent feature\r
109 > additions (and reading through NEWS file or the wiki is not really\r
110 > helping).\r
111\r
112 > So what I am looking for is a "modern" solution to replace my current\r
113 > strategy not really /scalable/ -i.e incorporating new mails is really\r
114 > getting slower each day- and most importantly I really need to reduce\r
115 > time taken to tag new material. Currently, my tagging script processes\r
116 > all my notmuch database even if only new mails are really tagged, it has\r
117 > to test each message to sort out what messages need tags; tagging only\r
118 > new mail would be really awesome.\r
119 \r
120 Nothing has changed on this front to my knowledge, but a common\r
121 technique is to have notmuch tag all new mail with a "new" tag (using\r
122 the "tags" setting under the [new] configuration section), to use\r
123 tag:new in tagging operations that should only apply to newly\r
124 incorporated mail, and then to remove tag:new from everything at the\r
125 end of your tagging script.\r
126 \r
127 One thing that may help a bit is that, as of 0.10, notmuch tag has\r
128 been optimized so, for example "notmuch tag -new '*'" is efficient.\r
129 \r
130 > By the way, I am using 0.10.x.\r
131\r
132 > Thank you\r
133\r
134 > /Xavier\r