On Tue, 03 Apr 2012 16:32:04 -0700, Jameson Graef Rollins wrote: > So in summary, if you would like to "delete" messages, you can: > > * add a key binding to emacs (or your favorite ui) to add a "deleted" > tag to messages that you want to delete: > > (define-key notmuch-show-mode-map "d" > (lambda () > (interactive) > (notmuch-show-tag-message "+deleted"))) Thank you for this. I had tried to reroll your patches (id:"1326826969-23545-1-git-send-email-jrollins@finestructure.net") on top of 0.12 and that was a miserable failure, so the above works well. In fact, I have made it like this instead: (define-key notmuch-show-mode-map "d" (lambda () (interactive) (notmuch-show-tag-message "+deleted") (notmuch-show-next-open-message))) ... but it doesn't seem to actually go to the next message... oh well, at least I can delete mail. Also note that you can delete whole threads with this: (define-key notmuch-search-mode-map "d" (lambda () (interactive) (notmuch-search-tag-thread "+deleted") (notmuch-search-next-thread))) ... and I have added an undelete function: (define-key notmuch-search-mode-map "u" (lambda () (interactive) (notmuch-search-tag-thread "-deleted") (notmuch-search-next-thread))) > * and if you really want them purged from disk, delete them manually > with: > > notmuch search --output=files tag:deleted | xargs -l rm I use this script: