procmail v3.10. I have a recipe which looks like this
(schematically) to junk certain mails from a mailing list:
:0
* ^TOsome_mailing_list_
* ^Subject.*((_situation_1_here_)|(_situation_2_here)|(_situation_3_here))
{
INCLUDERC=$PMDIR/bitbucket.rc
}
Each "situation" is a regexp which catches some subject header coming
from a particular mailing list. (bitbucket.rc simply tosses the mail
into the bit bucket and makes a one-line entry in the log the way *I*
want it to be.)
Now I find that the simple string making up the regexp for
situation 2 (for 2 it is _only_ a simple string so far) may or may not
be prefaced with the string "(FWD) ". The parentheses are part of the
new preface. For the life of me I can't quite figure out how to write
a new regexp which will catch situation 2 with or without the preface
string. I could write multiple recipes, of course, but that would be
inefficient. Again, at the moment "_situation_2_here_" is only a
simple string (with some embedded blanks). Any suggestions gratefully
received.
Paul <pobart(_at_)access(_dot_)digex(_dot_)net>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page: http://www.access.digex.net/~pobart