The Mutt E-Mail Client : Advanced Usage : Searching and Regular Expressions : Complex Searches
Previous: Searching
Next: Searching by Date

4.1.3. Complex Searches

Logical AND is performed by specifying more than one criterion. For example:

~t mutt ~f elkins

would select messages which contain the word ``mutt'' in the list of recipients and that have the word ``elkins'' in the ``From'' header field.

Mutt also recognizes the following operators to create more complex search patterns:

Here is an example illustrating a complex search pattern. This pattern will select all messages which do not contain ``mutt'' in the ``To'' or ``Cc'' field and which are from ``elkins''.

!(~t mutt|~c mutt) ~f elkins


The Mutt E-Mail Client : Advanced Usage : Searching and Regular Expressions : Complex Searches
Previous: Searching
Next: Searching by Date