How to search for all mail in the trash folder

Laur Aliste laur.aliste at gmail.com
Mon Apr 10 02:47:31 PDT 2017


Hi all,

I'm having trouble searching for mail in the trash directory. Only some
mail appears to be returned by notmuch search. Tried also rebuilding
notmuch index, after which no mail were found. Searching other dirs
works as expected - all the mail is returned. Note the mail in trash hasn't
been tagged with 'deleted' nor 'spam', but just in case tried explicitly
searching for those tags as well.

query:
    notmuch search folder:work/Trash '*'

notmuch-config:
[database]
path=/home/laur/mail

[user]
name=laur
primary_email=laur at gmail.com

[new]
tags=new;cal;
ignore=Trash;trash;junk;Junk;Spam;spam;

[search]
exclude_tags=deleted;spam;

[maildir]
synchronize_flags=true

Thanks,
Laur


More information about the notmuch mailing list