mutt limit match
Tresi Arvizo
tarvizo at mit.edu
Mon Jan 28 11:57:14 EST 2002
Ron Peterson wrote:
> I'm learning mutt. Wow. Why was I using Pine? I dunno. Anyway, not
> trying to start a flamewar, I actually have a question.
>
> I've configured my indexing as follows (although I'm not even sure if
> this is relevant):
>
> set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"
>
> Here's my problem. How can I get my limit match regexps to apply to
> messages I've /sent/? I.E. - where my fourth index column would say
> "To SoAndSo", rather than the sender. How do I limit match to
> SoAndSo? What exactly is the limit match regexp applied to? Of
> course this question pertains to any regexp selection, not just limit
> match.
You would include yourself in the search as the "from address" using
the ~f pattern operator. For example, if I wanted to limit to
messages from ME, and those that mention "mutt" in the body of the
message: "~f tarvizo ~b mutt".
Using limit without using any additional pattern operators, defaults
you to the pattern string as defined by simple_search.
(quote the manual)
simple_search
Type: string
Default: "~f %s | ~s %s"
Specifies how Mutt should expand a simple search into a real search
pattern. A simple search is one that does not contain any of the ~
operators. See `` patterns'' for more information on search patterns.
For example, if you simply type joe at a search or limit prompt, Mutt
will automatically expand it to the value specified by this
variable. For the default value it would be:
~f joe | ~s joe
The mutt manual explains pattern operators pretty thoroughly as well:
http://mutt.org/doc/manual/manual-6.html#simple_search
http://mutt.org/doc/manual/manual-4.html#ss4.2
or, you can hit the F1 key in mutt to page through a text version of
the manual.
In conclusion, mutt totally kicks ass. ;)
Tresi Arvizo
More information about the Discuss
mailing list