On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins <jrollins@finestructure.net> 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? 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. 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_7229.um\,S\=2421\:2\,S INBOX.Junk/new $ notmuch new Processed 1 file in almost no time. 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 $ 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 match:1 filename:/home/micah/Maildir/Personal/INBOX.Junk/new/1147465172.M760586P11592V0000000000000301I00141D45_7229.um,S=2421: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. Exactly the problem. micah