astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
613 stars 65 forks source link

search for folder #705

Closed kahironimashte closed 3 years ago

kahironimashte commented 3 years ago

Hi, I read, that with notmuch one can search for mails by folders doku.

How would I search for folders in Astroid?

I tried folder:accountname.subfolder

My mails are stored in ~/mails/accountname1, ~/mails/accountname2, etc.

gauteh commented 3 years ago

maybe path:accountname1/**

On Wed, Dec 30, 2020 at 6:05 PM kahironimashte notifications@github.com wrote:

Hi, I read, that with notmuch one can search for mails by folders doku https://notmuchmail.org/manpages/notmuch-search-terms-7/.

How would I search for folders in Astroid?

I tried folder:accountname.subfolder

My mails are stored in ~/mails/accountname1, ~/mails/accountname2, etc.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/astroidmail/astroid/issues/705, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAN36252YW6ELHITOVATJTSXNMWJANCNFSM4VOQULCA .

kahironimashte commented 3 years ago

Yes, path:accountname1/** works, thank you for the hint!

But I cannot make it work for subfolders like path:accountname1/Junk.

Does it work for you? Did you try the "folder:"-synthax on your machine?

gauteh commented 3 years ago

I'm not sure

kahironimashte commented 3 years ago

When in terminal: notmuch search folder:accountname/Junk gets me a list of junk mail from that folder.

Also in Astroid it works with folder:accountname/Junk

To get the right path terminal auto completion for notmuch is helpful.