How to search for all mail in the trash folder

Subject: How to search for all mail in the trash folder

Date: Mon, 10 Apr 2017 11:47:31 +0200

To: notmuch@notmuchmail.org

Cc:

From: Laur Aliste


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@gmail.com

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

[search]
exclude_tags=deleted;spam;

[maildir]
synchronize_flags=true

Thanks,
Laur

Thread: