[notmuch] [PATCH] notmuch-new: Fix notmuch new to look at files within symbolic links
[notmuch-archives.git] / 54 / 7938ccaa95c65a6296ceb700a2963d13485fdc
1 Return-Path: <cworth@cworth.org>\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 CBD8E431FBC;\r
6         Sat, 21 Nov 2009 13:00:25 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id v4UZiXA3QZG7; Sat, 21 Nov 2009 13:00:25 -0800 (PST)\r
11 Received: from cworth.org (localhost [127.0.0.1])\r
12         by olra.theworths.org (Postfix) with ESMTP id D5FB2431FAE;\r
13         Sat, 21 Nov 2009 13:00:24 -0800 (PST)\r
14 From: Carl Worth <cworth@cworth.org>\r
15 To: Jed Brown <jed@59A2.org>, notmuch@notmuchmail.org\r
16 In-Reply-To: <87einru0f9.fsf@59A2.org>\r
17 References: <87fx87u3no.fsf@59A2.org> <87einru0f9.fsf@59A2.org>\r
18 Date: Sat, 21 Nov 2009 22:00:13 +0100\r
19 Message-ID: <87tywn386a.fsf@yoom.home.cworth.org>\r
20 MIME-Version: 1.0\r
21 Content-Type: text/plain; charset=us-ascii\r
22 Subject: Re: [notmuch] Asynchronous tagging\r
23 X-BeenThere: notmuch@notmuchmail.org\r
24 X-Mailman-Version: 2.1.12\r
25 Precedence: list\r
26 List-Id: "Use and development of the notmuch mail system."\r
27         <notmuch.notmuchmail.org>\r
28 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
29         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
30 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
31 List-Post: <mailto:notmuch@notmuchmail.org>\r
32 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
33 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
34         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
35 X-List-Received-Date: Sat, 21 Nov 2009 21:00:26 -0000\r
36 \r
37 On Sat, 21 Nov 2009 20:45:30 +0100, Jed Brown <jed@59A2.org> wrote:\r
38 > Actually, this popped up again.  I have a workaround, but here's the\r
39 > story if you are interested.\r
40 \r
41 Hmmm... we definitely want to fix this, so let's figure this out.\r
42 \r
43 > After changing a flag in Gmail and syncing with offlineimap, I get this\r
44 > in my inbox\r
45\r
46 >  Today 19:18 [1/2] (null)                                   (null) (inbox unread)\r
47\r
48 > And when I try to open it, the buffer is full of stderr.\r
49\r
50 >   Error opening /home/jed/.mail-archive/gmail-all/new/1258826583_1.20705.kunyang,U=174235,FMD5=844bb96d088d057aa1b32ac1fbc67b56:2,: No such file or directory\r
51 \r
52 Ah, OK. So you made a change on the Gmail side and that caused a file to\r
53 be renamed locally.\r
54 \r
55 And yes, this currently makes notmuch very confused. That's a known\r
56 issue that needs to be documented better. And even better needs to be\r
57 fixed, (I just added a note for this to TODO).\r
58 \r
59 > Explicitly archiving the null message removes it from these queries so\r
60 > the clutter is gone now, but it has to be done manually because the null\r
61 > message doesn't match any search terms.\r
62 \r
63 Manually? All tag manipulation is done by search terms, so there's no\r
64 other way to remove a tag.\r
65 \r
66 Or did you mean you removed the tag from within emacs? In that case, the\r
67 search term used to find the message is the message id itself. (Try\r
68 running "M-x visible-mode" from a notmuch-search view in emacs to see\r
69 what those look like.)\r
70 \r
71 Meanwhile, just archiving the message won't make things perfect for\r
72 you. The document in the database point to the broken file is still\r
73 there. And it should still have all of its terms, so will likely show up\r
74 if you do more searches. (The "(null)" stuff you're seeing isn't because\r
75 the message is NULL---for example, notmuch was able to find the date,\r
76 etc. It's just that notmuch couldn't find the subject and authors when\r
77 it went to look for the file.)\r
78 \r
79 So if GMail+offlineimap continues to shuffle your files around, you're\r
80 going to keep seeing more and more confusion like this buildup.\r
81 \r
82 So we really just need to teach notmuch how to handle an unstable file\r
83 store in order to be able to use it in this kind of setup.\r
84 \r
85 -Carl\r