I recently upgraded to the newer notmuch to test out the new folder patch (its great!) and the new decryption/signature verification (its fantastic!), and noticed something odd start happening. I think that notmuch moves a new message to the maildir cur directory, From the new directory when you first read it. Is that right? This is actually what I would expect with maildirs, but notmuch wasn't doing this before. The reason why I care is because if I open a message, notmuch-show-get-filename tells me that the file is located in the 'new/' path, but it is actually not there at all, looking around it appears to be in the 'cur/' directory. This is because I made a function to let me do bayes training by putting mistaken emails in my Mistakes folder, so that they can be retrained: (defun notmuch-mark-as-mistake () "Moves the current message into the Mistakes folder" (interactive) (let* ((fullpath (notmuch-show-get-filename)) (filename (file-name-nondirectory fullpath))) (save-excursion (rename-file fullpath (concat "/home/micah/Maildir/INBOX.Mistakes/new/" filename))) (notmuch-show-archive-thread-then-exit) (notmuch-search-refresh-view) (hl-line-mode 1)(hl-line-mode 1))) (define-key notmuch-show-mode-map (kbd "S") 'notmuch-mark-as-mistake) if I hit the 'S' key on a message now, it complains that it cannot rename the file because it doesn't exist. Incidentally, does anyone know how I can do this without having to actually do a notmuch-show on the message? Most spam I can recognize by the subject in my inbox, and I dont need to open it to see that. micah