Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mutt limit match



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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org