1 Return-Path: <micah@riseup.net>
\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 A20A7431FBD
\r
6 for <notmuch@notmuchmail.org>; Tue, 2 Feb 2010 13:31:27 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.305 tagged_above=-999 required=5 tests=[AWL=0.324,
\r
12 BAYES_50=0.001, NUMERIC_HTTP_ADDR=0.001, RCVD_IN_DNSWL_LOW=-1,
\r
13 UNPARSEABLE_RELAY=0.001, URI_HEX=0.368] autolearn=no
\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 EbLjDPLQ7j1r for <notmuch@notmuchmail.org>;
\r
17 Tue, 2 Feb 2010 13:31:27 -0800 (PST)
\r
18 Received: from mx1.riseup.net (mx1.riseup.net [204.13.164.18])
\r
19 by olra.theworths.org (Postfix) with ESMTP id 2AAD4431FAE
\r
20 for <notmuch@notmuchmail.org>; Tue, 2 Feb 2010 13:31:27 -0800 (PST)
\r
21 Received: from [127.0.0.1] (localhost [127.0.0.1])
\r
22 (Authenticated sender: micah@mx1.riseup.net)
\r
23 with ESMTPSA id 0076A25E750
\r
24 Received: by lillypad (Postfix, from userid 1000)
\r
25 id 3C1435209A1; Tue, 2 Feb 2010 16:31:50 -0500 (EST)
\r
26 From: micah anderson <micah@riseup.net>
\r
27 To: Jameson Rollins <jrollins@finestructure.net>, Arvid Picciani
\r
28 <aep@exys.org>, notmuch@notmuchmail.org
\r
29 In-Reply-To: <873a1jebve.fsf@servo.finestructure.net>
\r
30 References: <201001291049.21048.sojkam1@fel.cvut.cz>
\r
31 <1265122868-12133-1-git-send-email-sojkam1@fel.cvut.cz>
\r
32 <87eil3ehjh.fsf@servo.finestructure.net> <4B686569.7030408@exys.org>
\r
33 <873a1jebve.fsf@servo.finestructure.net>
\r
34 Date: Tue, 02 Feb 2010 16:31:38 -0500
\r
35 Message-ID: <87r5p3l3yd.fsf@lillypad.riseup.net>
\r
37 Content-Type: multipart/signed; boundary="=-=-=";
\r
38 micalg=pgp-sha512; protocol="application/pgp-signature"
\r
39 X-Virus-Scanned: clamav-milter 0.95.3 at mx1
\r
40 X-Virus-Status: Clean
\r
41 Subject: Re: [notmuch] [PATCHv2] Preserve folder information when indexing
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Tue, 02 Feb 2010 21:31:27 -0000
\r
57 Content-Transfer-Encoding: quoted-printable
\r
59 On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins <jrollins@finestructure=
\r
61 > I'm starting to think that maybe the folder: field is not the right way
\r
62 > to do this, though. What if a message moves?=20=20
\r
64 The easiest way to answer this question is to try it. I did that, and
\r
65 things didn't work as expected. I expected that once the message was
\r
66 moved to a different folder, and 'notmuch new' was run, then the folder
\r
67 search result would move with the message move.=20
\r
69 I tried to move a message from folder 'thinkpad' to folder 'Junk':
\r
71 1. First I did a search that included the thinkpad folder, with a string
\r
72 I know is in an email:
\r
74 $ notmuch search folder:thinkpad 05K9519
\r
75 thread:4ba02e2c665b09fb74dc6f1b6ea3aac2 2004-02-25 [1/1] J H. Maut; RE: [=
\r
76 Thinkpad] thinkpad 600e LCD quesiton (thinkpad unread)
\r
78 2. then I moved that email to my Junk folder and ran notmuch new:
\r
80 $ mv INBOX.thinkpad/new1147465172.M760586P11592V0000000000000301I00141D45_7=
\r
81 229.um\,S\=3D2421\:2\,S INBOX.Junk/new
\r
83 Processed 1 file in almost no time.=20=20=20=20=20=20=20=20=20=20=20=20=20=
\r
84 =20=20=20=20=20=20=20
\r
85 No new mail. Detected 1 file rename.
\r
87 3. then I tried to repeat the search I did in #1, searching for the
\r
88 folder thinkpad and the string, and it still returns the result (this is
\r
89 not expected! I would expect no result returned):
\r
91 $ notmuch search folder:thinkpad 05K9519
\r
92 thread:4ba02e2c665b09fb74dc6f1b6ea3aac2 2004-02-25 [1/1] J H. Maut; RE: [=
\r
93 Thinkpad] thinkpad 600e LCD quesiton (thinkpad unread)
\r
95 4. If i try and search for the same message in the Junk folder, I get no
\r
98 $ notmuch search folder:Junk 05K9519
\r
101 5. If I do a show on the message, I see that notmuch knows that the
\r
102 file is actually in the Junk folder:
\r
104 $ notmuch show thread:4ba02e2c665b09fb74dc6f1b6ea3aac2
\r
106 message{ id:BKEJKEHBAJJAFLAGIHJCGEEEECAA.J.H.Maut@somewhere.net depth:0 mat=
\r
107 ch:1 filename:/home/micah/Maildir/Personal/INBOX.Junk/new/1147465172.M76058=
\r
108 6P11592V0000000000000301I00141D45_7229.um,S=3D2421:2,S
\r
111 > Only new mails are having this field modified, so if messages are
\r
112 > moved that field is not modified, and since it's being added as part
\r
113 > of the message (like "subject:") it's not modifiable.=20=20
\r
115 Exactly the problem.
\r
120 Content-Type: application/pgp-signature
\r
122 -----BEGIN PGP SIGNATURE-----
\r
123 Version: GnuPG v1.4.10 (GNU/Linux)
\r
125 iQIcBAEBCgAGBQJLaJm+AAoJEIy/mjIoYaeQfNgQAJ81buhFdgK0LHqNBFxhjRUb
\r
126 02GcYhQntN9V2y44WcwtLZ3DdJ4QnHo6h0ppwMsJ8GTyMQhSV4P7kobkpYqZlYu7
\r
127 rZz2Cvq4hjUY2Ync7bDnGRLAZoR0rmMP8c3aF8EDfWGlTPkC/Bqn1di/pKWDfBoc
\r
128 dD7UT2JcqVcWFqVt50vpLZrjpFLHXKVYwt8wQYxyLd1TQg/dfoss9q6gAgtKCjFv
\r
129 K1enNr4YLfQdA4+XVvx1E/P/8fydwp0k3YU5XDMs11M3roZuQOKUWcK7knhkmK2x
\r
130 PuG9f6a039flgFyn0GsUyLKQeZYnO5/dGUf5LbIUXhOYCKUAq1wDXat7XuCzNTU+
\r
131 fAdN8eLbHQrvXeSY2upt3BunL2YVXsuSQw9kZFsoqJtY791hRioQOHgo2SqtOBZZ
\r
132 Ig//XhwwnWtiWG/+BYcWXa5UzSusK0WjjoJUdbYDQncp+gnyndpMEc6zY/ssUNEB
\r
133 6064KEZQlhjFN/x3xLHmFsAq3c5MekU5FZ6Ehh0mPd0odxqMM67WIvDqgsiRUTXM
\r
134 8/GLgb0krdBSdPut5TgaH+zefpq76NkeJFI0/5+cKzkbCUYLM46QnYUs+jChcJDK
\r
135 tBePORHgrgij/hbdEHj+FchS153rr21VVMHkBiH2juWDNWpIbj0imy5MDZEuhhS+
\r
136 HIrXOOjR8gh/Y6aP7gZZ
\r
138 -----END PGP SIGNATURE-----
\r