procmail
[Top] [All Lists]

cleaning up with regexes

1997-06-17 10:53:00

I currently have a bunch of little recipes that could be done by better
recipes using regexes, but I'm still a little unsure of the syntax.

[snip previous rc patterns ]

:0Efhw
* ^From 
owner-nsfip-homebrew(_at_)mmg2\(_dot_)im\(_dot_)med\(_dot_)umich\(_dot_)edu
| formail -I "X-Prefiled: nsfip"  -I"X-Autoreply: no"

:0Efhw
* ^TOnsfip-homebrew(_at_)mmg2\(_dot_)im\(_dot_)med\(_dot_)umich\(_dot_)edu
| formail -I "X-Prefiled: nsfip"  -I"X-Autoreply: no"

:0Efhw
* 
^TOnsfip-homebrew-outgoing(_at_)mmg2\(_dot_)im\(_dot_)med\(_dot_)umich\(_dot_)edu)
| formail -I "X-Prefiled: nsfip"  -I"X-Autoreply: no"
 
Now I wanted to rewrite this as one recipe


:0Efhw
* (^TOnsfip-homebrew(-outgoing)|From.*nsfip-homebrew)@mmg2\.im\.med\.umich\.edu
| formail -I "X-Prefiled: nsfip"  -I"X-Autoreply: no"

Does that look OK?  I wasn't real sure where the final ")" should go (the
one I have placed before the "@" sign).  I also was not sure about the use
of ^TO and the ( )

I've got a bunch of these, so helping with one will help with a lot
more...

Thanks!

TjL


<Prev in Thread] Current Thread [Next in Thread>