unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* How to search for all mail in the trash folder
@ 2017-04-10  9:47 Laur Aliste
  2017-04-10 10:52 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Laur Aliste @ 2017-04-10  9:47 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to search for all mail in the trash folder
  2017-04-10  9:47 How to search for all mail in the trash folder Laur Aliste
@ 2017-04-10 10:52 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2017-04-10 10:52 UTC (permalink / raw)
  To: Laur Aliste, notmuch

Laur Aliste <laur.aliste@gmail.com> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-10 10:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-10  9:47 How to search for all mail in the trash folder Laur Aliste
2017-04-10 10:52 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).