On Fri, Jan 09, 2004 at 08:39:57AM -0500, David T-G wrote: > ...and then David Yitzchak Cohen said... > % if egrep "^To:.* blah@xxxxxxx" >&/dev/null ; then > % blah_goo_gaa=1 > % fi > % > % if egrep "^To:.* wawa@xxxxxxxx" >&/dev/null ; then > % wawa_mama_dad=1 > % fi > > Oops. I forgot to note that this will often not work, since it can't > handle > > To: My Crazy Friend <blah@xxxxxxx>, > Baby Brother <wawa@xxxxxxxx> A quick google will reveal some useful utilities for getting recipients (not just TOed guys) and arbitrary headers from emails, as well as some filters to "single-line"ify headers (so you can use my grep trick above as-is, if you really really want to). If you're too lazy to google, have a peek in my ~/bin directory [1] for some of my personal favorites. (A few of the scripts in my Mutt config file directory [2] illustrate the usage of most of them, if you can't figure it out yourself easily. If that fails too, just ask me.) Enjoy, - Dave [1] http://www.bigfatdave.com/dave/bin/ [2] http://www.bigfatdave.com/dave/mutt/muttdir/ -- Uncle Cosmo, why do they call this a word processor? It's simple, Skyler. You've seen what food processors do to food, right? Please visit this link: http://rotter.net/israel
Attachment:
pgpJL2Hrb9M1U.pgp
Description: PGP signature