=head1 Name notmuch-search-terms - syntax for notmuch queries =head1 Synopsis B B [I] >... B B [ > ] [--] [ >...] B B [I...] >... B B [I...] >... B B +>|-> [...] [--] >... =head1 Description Several notmuch commands accept a common syntax for search terms. The search terms can consist of free-form text (and quoted phrases) which will match all messages that contain all of the given terms/phrases in the body, the subject, or any of the sender or recipient headers. As a special case, a search string consisting of exactly a single asterisk ("*") will match all messages. In addition to free text, the following prefixes can be used to force terms to match against specific portions of an email, (where indicate user-supplied values): from: to: subject: attachment: tag: (or is:) id: thread: folder: date:.. The B prefix is used to match the name or address of the sender of an email message. The B prefix is used to match the names or addresses of any recipient of an email message, (whether To, Cc, or Bcc). Any term prefixed with B will match only text from the subject of an email. Searching for a phrase in the subject is supported by including quotation marks around the phrase, immediately following B. The B prefix can be used to search for specific filenames (or extensions) of attachments to email messages. For B and B valid tag values include B and B by default for new messages added by B B as well as any other tag values added manually with B B. For B, message ID values are the literal contents of the Message-ID: header of email messages, but without the `<', `>' delimiters. The B prefix can be used with the thread ID values that are generated internally by notmuch (and do not appear in email messages). These thread ID values can be seen in the first column of output from B B The B prefix can be used to search for email message files that are contained within particular directories within the mail store. Only the directory components below the top-level mail database path are available to be searched. The B prefix can be used to restrict the results to only messages within a particular time range (based on the Date: header) with a range syntax of: date:.. See B B B