Ranjan Maitra via Mutt-users <[email protected]> writes: > I use notmuch (not very effectively) with mutt. > > So, I use F8 and get a bunch of results according to what I search on. > > How do I tell which folders each of these emails (in the search) came from?
I ran man notmuch search inside the terminal and found this: --output=(summary|threads|messages|files|tags) files Output the filenames of all messages matching the search terms, either one per line (--format=text), separated by null characters (--format=text0), as a JSON array (--format=json), or as an S-Expression list (--format=sexp). Note that each message may have multiple filenames associated with it. All of them are included in the output (unless limited with the --duplicate=N option). This may be particularly confusing for folder: or path: searches in a specified directory, as the messages may have duplicates in other directories that are included in the output, although these files alone would not match the search. E.g., notmuch search --output=files tag:sent If you find a message you are interested in, you could do notmuch search id:<message-id> per https://notmuchmail.org/searching/
