Quantcast

How to search for all mail in the trash folder

classic Classic list List threaded Threaded
2 messages Options
Laur Aliste Laur Aliste
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to search for all mail in the trash folder

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=[hidden email]

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

[search]
exclude_tags=deleted;spam;

[maildir]
synchronize_flags=true

Thanks,
Laur
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
David Bremner-2 David Bremner-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Laur Aliste <[hidden email]> writes:

>
> query:
>     notmuch search folder:work/Trash '*'
>
[snip]
> [new]
> tags=new;cal;
> ignore=Trash;trash;junk;Junk;Spam;spam;

That looks suspicious. If you're ignore Trash that explains why no
messages were found after re-index.
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
Loading...