1 Return-Path: <jani@nikula.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 14A9D431FC0
\r
6 for <notmuch@notmuchmail.org>; Fri, 29 Mar 2013 15:15:12 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 eeI5IpMfy32n for <notmuch@notmuchmail.org>;
\r
16 Fri, 29 Mar 2013 15:15:10 -0700 (PDT)
\r
17 Received: from mail-la0-f45.google.com (mail-la0-f45.google.com
\r
18 [209.85.215.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 5DE81431FAE
\r
21 for <notmuch@notmuchmail.org>; Fri, 29 Mar 2013 15:15:10 -0700 (PDT)
\r
22 Received: by mail-la0-f45.google.com with SMTP id er20so817669lab.32
\r
23 for <notmuch@notmuchmail.org>; Fri, 29 Mar 2013 15:15:07 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=google.com; s=20120113;
\r
26 h=x-received:from:to:subject:in-reply-to:references:user-agent:date
\r
27 :message-id:mime-version:content-type:content-transfer-encoding
\r
28 :x-gm-message-state;
\r
29 bh=hrD4F1jdX5zjhW5kmFgJooPT/g+pzRC2t7pHQQmAswY=;
\r
30 b=e/N3Nthn3gNxZRMRs4GZ+TXlEL7xRlZI76+ivHsUN+WRA7X9ZJFGJWg2cU01fFFZd5
\r
31 Hb2Kn01Ax2onhaAN0LfLc5zoPloAiHsI7hv4WcEY7GhWRXdc8KiyGdHlTHfSy09hgo2G
\r
32 aI631M8/cqa9YUHZ1oRVmjdLS7SJ6rQo6OScAmRXKUjWXyhCvsUPkQH8h2OSmtlNlw2Y
\r
33 3wQCJlxyF1cdkRKlUuVhdVe3tCOWV6F0kU63Dx4vyOUSTNz3Pri5bJEzVG3+sH3doHIh
\r
34 klBiR20bLy57Ox7NGEJuZX3kJ0R93ZzQ0a0U+FOct9Oj+gxvqRaz1CBJ/Hc1tGKwl/M7
\r
36 X-Received: by 10.152.113.164 with SMTP id iz4mr1795160lab.50.1364595307507;
\r
37 Fri, 29 Mar 2013 15:15:07 -0700 (PDT)
\r
38 Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.
\r
40 by mx.google.com with ESMTPS id z1sm1814128lbk.2.2013.03.29.15.15.05
\r
41 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
42 Fri, 29 Mar 2013 15:15:06 -0700 (PDT)
\r
43 From: Jani Nikula <jani@nikula.org>
\r
44 To: kedals0@gmail.com, notmuch@notmuchmail.org
\r
45 Subject: Re: Strange behavior on manually files moving
\r
46 In-Reply-To: <87vc8me95v.fsf@compaq.home>
\r
47 References: <87vc8me95v.fsf@compaq.home>
\r
48 User-Agent: Notmuch/0.15.2+48~gc5630bf (http://notmuchmail.org) Emacs/24.2.1
\r
49 (x86_64-pc-linux-gnu)
\r
50 Date: Sat, 30 Mar 2013 00:15:04 +0200
\r
51 Message-ID: <87ppyhg8ev.fsf@nikula.org>
\r
53 Content-Type: text/plain; charset=utf-8
\r
54 Content-Transfer-Encoding: quoted-printable
\r
56 ALoCoQkFj2jCsgQzRRuef7U+TQ6gzJQtG2YKmuk2909dRWbSxXvCkGvC7uPOGCrNebYmY/6tYyer
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Fri, 29 Mar 2013 22:15:12 -0000
\r
71 On Wed, 20 Mar 2013, kedals0@gmail.com wrote:
\r
74 > When I manually move some messages, these changes are detected by
\r
75 > notmuch but it doesn't remove these files of its database.
\r
76 > I think, it's more clear to show you an example:
\r
79 > toto@compaq:~$ notmuch new
\r
82 > 2) I show you the initial location of the message that we will move
\r
83 > toto@compaq:~$ ls /home/toto/mail/drafts/cur/#*message*-20130312-16313=
\r
85 > /home/toto/mail/drafts/cur/#*message*-20130312-163131#:2,DS
\r
87 > 3) we move this message
\r
88 > toto@compaq:~$ mv /home/toto/mail/drafts/cur/#*message*-20130312-16313=
\r
89 1#:2,DS /home/toto/mail/local/trash/cur/
\r
91 > 4) we update notmuch database
\r
92 > toto@compaq:~$ notmuch new
\r
93 > Processed 1 file in almost no time.
\r
94 > No new mail. Removed 1 message.
\r
96 > 5) we can observe that old message location still exist in the db
\r
97 > toto@compaq:~$ notmuch search --output=3Dfiles tag:draft folder:local/=
\r
99 > /home/toto/mail/local/trash/cur/#*message*-20130312-163131#:2,DS
\r
100 > /home/toto/mail/drafts/cur/#*message*-20130312-163131#:2,DS
\r
102 > 6) but no file exist at this location.
\r
103 > toto@compaq:~$ ls /home/toto/mail/drafts/cur/#*message*-20130312-16313=
\r
105 > ls: impossible d'acc=C3=A9der =C3=A0 /home/toto/mail/drafts/cur/#*mess=
\r
106 age*-20130312-163131#:2,DS: Aucun fichier ou dossier de ce type
\r
109 > I don't understand this problem because this usecase is close from a
\r
110 > file deletion which works.
\r
112 > Would anyone have an idea ?
\r
114 What do you have in 'notmuch config get new.ignore'? Have you changed
\r
115 this setting recently?
\r
117 I could reproduce something similar by adding an ignore on a folder that
\r
118 had files indexed by notmuch:
\r
120 $ cd /path/to/maildir
\r
123 $ # deliver a message to foo/baz
\r
125 Processed 1 file in almost no time.
\r
126 Added 1 new message to the database.
\r
127 $ notmuch config set new.ignore foo
\r
129 $ notmuch new --debug
\r
130 (D) add_files_recursive, pass 1: explicitly ignoring /path/to/maildir/foo
\r
131 Processed 1 file in almost no time.
\r
133 $ notmuch search --output=3Dfiles folder:bar
\r
134 /path/to/maildir/foo/baz
\r
135 /path/to/maildir/bar/baz
\r
137 Note that the last search finds messages that have at least one
\r
138 associated file in a folder matching bar, and then outputs *all* the
\r
139 associated files for the messages. Here, the ignore has caused notmuch
\r
140 to not notice the file in foo has been deleted.
\r