i do not have INBOX
Brian Sniffen
bts at evenmere.org
Fri Jan 20 07:48:07 PST 2017
David Bremner <david at tethera.net> writes:
> David Belohrad <david at belohrad.ch> writes:
>
>>
>> my directory does not contain INBOX, as inside the Maildir folder is
>> directly /cur, /new, /tmp. How do I search in this particular one?
>
> Quoting notmuch-search-terms(7)
>
> The exact syntax for maildir folders depends on your mail configura‐
> tion. For maildir++, folder:"" matches the inbox folder (which is the
> root in maildir++), other folder names always start with ".", and
> nested folders are separated by "."s, such as folder:.classes.topol‐
> ogy. For "file system" maildir, the inbox is typically folder:INBOX
> and nested folders are separated by slashes, such as
> folder:classes/topology.
>
>> The question is related to usage of 'afew' to move all mails which
>> have 'deleted' tag into Trash folder (which I have under .Trash)
>
> Hopefully the above is enough to help you formulate the right query.
> You probably also want the options --format=text0 and --output=files for
> notmuch search.
The next paragraph of that man page has an important warning for anyone
planning on re-arranging files based on the results of notmuch:
Both path: and folder: will find a message if any copy of that
message is in the specific directory/folder.
It's important to filter the names (e.g., `notmuch ...|grep -Fzv
/.|xargs -Ifoo mv foo $MAILDIR/.Trash/cur/`) before relying on them.
-Brian
More information about the notmuch
mailing list