Re: database error
[notmuch-archives.git] / c2 / 59d4d0c4a79bdec8f63ac0824cda631f545cf3
1 Return-Path: <servilio@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 3B436429E26\r
6         for <notmuch@notmuchmail.org>; Mon, 25 Apr 2011 19:38:52 -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 Vt1YLbg3KKhU for <notmuch@notmuchmail.org>;\r
17         Mon, 25 Apr 2011 19:38:51 -0700 (PDT)\r
18 Received: from mail-pw0-f53.google.com (mail-pw0-f53.google.com\r
19         [209.85.160.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 7FB4E431FD0\r
22         for <notmuch@notmuchmail.org>; Mon, 25 Apr 2011 19:38:51 -0700 (PDT)\r
23 Received: by pwj7 with SMTP id 7so194462pwj.26\r
24         for <notmuch@notmuchmail.org>; Mon, 25 Apr 2011 19:38:49 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:mime-version:in-reply-to:references:date\r
27         :message-id:subject:from:to:cc:content-type\r
28         :content-transfer-encoding;\r
29         bh=oanNgTiZSCPHEyit0epp+qHoCa9WxxQhQvFsSxQqUpo=;\r
30         b=Mq4xeoj3AwteM+THzOyx3IMCeOe5Mx0VdOa7R5Nr4XhuR1YiJoumdjGXtR+sbNKcBC\r
31         XT5IXbWComnxnyrFb0n6sh9spc+FwSPIbXQ4wb0WggiRcbkp3r1rR0d6ykpNV7sMnosH\r
32         WGUcVakY12pXnWOHhL+IhJ8Hem9w7Pr4GL4Kw=\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
34         h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
35         :cc:content-type:content-transfer-encoding;\r
36         b=BOon7MicgO7rsdrvmV2w4TrKdGsPmVHZqsxOQxw6NVTllp1AzSdQD9BNtD61vrxaNq\r
37         SuRVu8kJVadiGeIy+2UmbtkdsTJvtIHJ6kyWiuTNbEqWqsxo9TOzNBTQ+wiuhJeVDuFS\r
38         vCgixASpi0UympCKXTbtyBGB+E38vlxTdo4VU=\r
39 MIME-Version: 1.0\r
40 Received: by 10.68.65.78 with SMTP id v14mr322013pbs.204.1303785529105; Mon,\r
41         25 Apr 2011 19:38:49 -0700 (PDT)\r
42 Received: by 10.68.58.225 with HTTP; Mon, 25 Apr 2011 19:38:48 -0700 (PDT)\r
43 In-Reply-To: <BANLkTimfpvUhEf+UM_0TqwMdMTvzuUjzHw@mail.gmail.com>\r
44 References: <8739ll8dkv.fsf@eve.chaoflow.net>\r
45         <87pqomgxr0.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
46         <878vv8hh3u.fsf@servo.factory.finestructure.net>\r
47         <BANLkTimfpvUhEf+UM_0TqwMdMTvzuUjzHw@mail.gmail.com>\r
48 Date: Mon, 25 Apr 2011 22:38:48 -0400\r
49 Message-ID: <BANLkTimubWJaPYdignzfnRPCpPefVsG1BA@mail.gmail.com>\r
50 Subject: Re: (auto-)tagging sent messages\r
51 From: servilio <servilio@gmail.com>\r
52 To: Austin Clements <amdragon@mit.edu>\r
53 Content-Type: text/plain; charset=UTF-8\r
54 Content-Transfer-Encoding: quoted-printable\r
55 Cc: notmuch@notmuchmail.org\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Tue, 26 Apr 2011 02:38:52 -0000\r
69 \r
70 On 18 April 2011 16:26, Austin Clements <amdragon@mit.edu> wrote:\r
71 > On Sun, Apr 17, 2011 at 2:23 PM, Jameson Graef Rollins\r
72 > <jrollins@finestructure.net> wrote:\r
73 >> By giving "notmuch new" a path to a message in the store:\r
74 >>\r
75 >> =C2=A0notmuch new /path/to/message\r
76 >>\r
77 >> By feeding "notmuch new" a message on stdin, and then having it write\r
78 >> the message to a specified location:\r
79 >>\r
80 >> =C2=A0notmuch new /path/to/maildir <message\r
81 >>\r
82 >> You could then add the ability to add tags at the time of index:\r
83 >>\r
84 >> =C2=A0notmuch new +foo +bar /path/to/message\r
85 \r
86 I like more the idea of using a CLI option, e.g.:\r
87 \r
88 notmuch new --tag=3Dfoo --tag=3Dbar /path/to/message\r
89 \r
90 > I think passing specific messages or directories to notmuch new would\r
91 > enable some nice features; beyond immediate indexing any tagging of\r
92 > sent mail, it could be combined with inotify to immediately index any\r
93 > new mail\r
94 \r
95 I would add "efficiently", it can be done right now, but it would scan\r
96 the whole mail sub-tree everytime.\r
97 \r
98 > However, concurrency and atomicity have to be considered carefully\r
99 > with any proposal like this. =C2=A0For example,\r
100 > =C2=A0notmuch new +foo +bar /path/to/message\r
101 > has concurrency hazards: the caller has to store the message before\r
102 > invoking notmuch new, but if the machine crashes between these two\r
103 > operations, the message will be indexed with default tags on the next\r
104 > notmuch new. =C2=A0Similarly, a chance unrelated invocation of notmuch ne=\r
105 w\r
106 > immediately after the message is stored would result in the new\r
107 > message being indexed with default tags.\r
108 \r
109 One solution to both issues would be to add the feature to "notmuch\r
110 new" of taking the initial tags from a custom header (e.g.:\r
111 X-Notmuchmail-Agent-Initial-Tags), and use\r
112 message-ignored-mail-headers[1] to filter this header out the sent\r
113 message.\r
114 \r
115 Servilio\r
116 \r
117 [1] http://www.gnu.org/software/emacs/manual/html_mono/message.html#Mail-He=\r
118 aders\r