Re: [PATCH v4 02/16] Move crypto.c into libutil
[notmuch-archives.git] / 9f / d3c8dee1d390c4e852b1654d7c32fc400f6cde
1 Return-Path: <sojkam1@fel.cvut.cz>\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 EA87A431FBC\r
6         for <notmuch@notmuchmail.org>; Tue,  9 Feb 2010 09:20:07 -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: -1.067\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.067 tagged_above=-999 required=5\r
12         tests=[AWL=-1.068, BAYES_50=0.001] 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 JG6Rawk7Dh2d for <notmuch@notmuchmail.org>;\r
16         Tue,  9 Feb 2010 09:20:07 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id E61AE431FAE\r
19         for <notmuch@notmuchmail.org>; Tue,  9 Feb 2010 09:20:06 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 293F019F3300;\r
22         Tue,  9 Feb 2010 18:20:06 +0100 (CET)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id OiiS8K9mMr9U; Tue,  9 Feb 2010 18:20:02 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id 1D34919F3333;\r
30         Tue,  9 Feb 2010 18:20:02 +0100 (CET)\r
31 Received: from steelpick.localdomain (k335-30.felk.cvut.cz [147.32.86.30])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 15B7DFA003;\r
34         Tue,  9 Feb 2010 18:20:02 +0100 (CET)\r
35 Received: from wsh by steelpick.localdomain with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1Netkn-0006gW-UA; Tue, 09 Feb 2010 18:20:02 +0100\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: Brett Viren <brett.viren@gmail.com>, notmuch@notmuchmail.org\r
40 In-Reply-To: <46263c601002090738k6a8f0e92v807b535918cbc7a5@mail.gmail.com>\r
41 References: <46263c601002090738k6a8f0e92v807b535918cbc7a5@mail.gmail.com>\r
42 Date: Tue, 09 Feb 2010 18:20:01 +0100\r
43 Message-ID: <87ljf2jpha.fsf@steelpick.localdomain>\r
44 MIME-Version: 1.0\r
45 Content-Type: text/plain; charset=us-ascii\r
46 Subject: Re: [notmuch] Problems with Maildir and files moving from new/ to\r
47  cur/\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Tue, 09 Feb 2010 17:20:08 -0000\r
61 \r
62 On Tue, 9 Feb 2010 10:38:04 -0500, Brett Viren <brett.viren@gmail.com> wrote:\r
63 > Hi,\r
64\r
65 > I use procmail to prefilter mail into various sub groups of a Maildir.\r
66 >  This Maildir is served by dovecot IMAP and is also visible to\r
67 > notmuch.  I run "notmuch new" followed by "notmuch tag -inbox -unread\r
68 > tag:inbox" (I use GNUS to do my reading and don't want these tags in\r
69 > the way the few times I run notmuch for reading) every 10 minutes from\r
70 > cron.  I often will check my email before the cron job gets a chance\r
71 > to run and vice versa.\r
72\r
73 > The problem I have is that this race condition means that sometimes\r
74 > notmuch will index a message as being under the Maildir/.<topic>/new/\r
75 > subdirectory, I then read it and it is moved to Maildir/.<topic>/cur/\r
76 > (I think that is what is happening).  Then when I do a search, notmuch\r
77 > returns a file that is no longer around.\r
78\r
79 > This may not be an issue with notmuch, per se, but does anyone have\r
80 > any suggestions to make this work more smoothly?\r
81 \r
82 Hi,\r
83 \r
84 I'm afraid that with current version there is no solution for this.\r
85 There were some proposals to tell notmuch which files you want to index\r
86 and use this functionality to run indexing right on delivery on when a\r
87 rename is detected (e.g. by inotify). See\r
88 id:1264719647-sup-9540@ben-laptop for details. AFAIK nobody have sent\r
89 patches for this yet.\r
90 \r
91 Cheers,\r
92 Michal\r