Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A20A7431FBD for ; Tue, 2 Feb 2010 13:31:27 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.305 X-Spam-Level: X-Spam-Status: No, score=-0.305 tagged_above=-999 required=5 tests=[AWL=0.324, BAYES_50=0.001, NUMERIC_HTTP_ADDR=0.001, RCVD_IN_DNSWL_LOW=-1, UNPARSEABLE_RELAY=0.001, URI_HEX=0.368] autolearn=no Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EbLjDPLQ7j1r for ; Tue, 2 Feb 2010 13:31:27 -0800 (PST) Received: from mx1.riseup.net (mx1.riseup.net [204.13.164.18]) by olra.theworths.org (Postfix) with ESMTP id 2AAD4431FAE for ; Tue, 2 Feb 2010 13:31:27 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: micah@mx1.riseup.net) with ESMTPSA id 0076A25E750 Received: by lillypad (Postfix, from userid 1000) id 3C1435209A1; Tue, 2 Feb 2010 16:31:50 -0500 (EST) From: micah anderson To: Jameson Rollins , Arvid Picciani , notmuch@notmuchmail.org In-Reply-To: <873a1jebve.fsf@servo.finestructure.net> References: <201001291049.21048.sojkam1@fel.cvut.cz> <1265122868-12133-1-git-send-email-sojkam1@fel.cvut.cz> <87eil3ehjh.fsf@servo.finestructure.net> <4B686569.7030408@exys.org> <873a1jebve.fsf@servo.finestructure.net> Date: Tue, 02 Feb 2010 16:31:38 -0500 Message-ID: <87r5p3l3yd.fsf@lillypad.riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.95.3 at mx1 X-Virus-Status: Clean Subject: Re: [notmuch] [PATCHv2] Preserve folder information when indexing X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2010 21:31:27 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins wrote: > I'm starting to think that maybe the folder: field is not the right way > to do this, though. What if a message moves?=20=20 The easiest way to answer this question is to try it. I did that, and things didn't work as expected. I expected that once the message was moved to a different folder, and 'notmuch new' was run, then the folder search result would move with the message move.=20 I tried to move a message from folder 'thinkpad' to folder 'Junk': 1. First I did a search that included the thinkpad folder, with a string I know is in an email: $ notmuch search folder:thinkpad 05K9519 thread:4ba02e2c665b09fb74dc6f1b6ea3aac2 2004-02-25 [1/1] J H. Maut; RE: [= Thinkpad] thinkpad 600e LCD quesiton (thinkpad unread) 2. then I moved that email to my Junk folder and ran notmuch new: $ mv INBOX.thinkpad/new1147465172.M760586P11592V0000000000000301I00141D45_7= 229.um\,S\=3D2421\:2\,S INBOX.Junk/new $ notmuch new Processed 1 file in almost no time.=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 No new mail. Detected 1 file rename. 3. then I tried to repeat the search I did in #1, searching for the folder thinkpad and the string, and it still returns the result (this is not expected! I would expect no result returned): $ notmuch search folder:thinkpad 05K9519 thread:4ba02e2c665b09fb74dc6f1b6ea3aac2 2004-02-25 [1/1] J H. Maut; RE: [= Thinkpad] thinkpad 600e LCD quesiton (thinkpad unread) 4. If i try and search for the same message in the Junk folder, I get no results: $ notmuch search folder:Junk 05K9519 $=20 5. If I do a show on the message, I see that notmuch knows that the file is actually in the Junk folder: $ notmuch show thread:4ba02e2c665b09fb74dc6f1b6ea3aac2 message{ id:BKEJKEHBAJJAFLAGIHJCGEEEECAA.J.H.Maut@somewhere.net depth:0 mat= ch:1 filename:/home/micah/Maildir/Personal/INBOX.Junk/new/1147465172.M76058= 6P11592V0000000000000301I00141D45_7229.um,S=3D2421:2,S > Only new mails are having this field modified, so if messages are > moved that field is not modified, and since it's being added as part > of the message (like "subject:") it's not modifiable.=20=20 Exactly the problem. micah --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJLaJm+AAoJEIy/mjIoYaeQfNgQAJ81buhFdgK0LHqNBFxhjRUb 02GcYhQntN9V2y44WcwtLZ3DdJ4QnHo6h0ppwMsJ8GTyMQhSV4P7kobkpYqZlYu7 rZz2Cvq4hjUY2Ync7bDnGRLAZoR0rmMP8c3aF8EDfWGlTPkC/Bqn1di/pKWDfBoc dD7UT2JcqVcWFqVt50vpLZrjpFLHXKVYwt8wQYxyLd1TQg/dfoss9q6gAgtKCjFv K1enNr4YLfQdA4+XVvx1E/P/8fydwp0k3YU5XDMs11M3roZuQOKUWcK7knhkmK2x PuG9f6a039flgFyn0GsUyLKQeZYnO5/dGUf5LbIUXhOYCKUAq1wDXat7XuCzNTU+ fAdN8eLbHQrvXeSY2upt3BunL2YVXsuSQw9kZFsoqJtY791hRioQOHgo2SqtOBZZ Ig//XhwwnWtiWG/+BYcWXa5UzSusK0WjjoJUdbYDQncp+gnyndpMEc6zY/ssUNEB 6064KEZQlhjFN/x3xLHmFsAq3c5MekU5FZ6Ehh0mPd0odxqMM67WIvDqgsiRUTXM 8/GLgb0krdBSdPut5TgaH+zefpq76NkeJFI0/5+cKzkbCUYLM46QnYUs+jChcJDK tBePORHgrgij/hbdEHj+FchS153rr21VVMHkBiH2juWDNWpIbj0imy5MDZEuhhS+ HIrXOOjR8gh/Y6aP7gZZ =KeuH -----END PGP SIGNATURE----- --=-=-=--