procmail
[Top] [All Lists]

Re: OR'ed regexps in procmail Condition

1997-03-29 09:34:13
Paul O Bartlett <pobart(_at_)access(_dot_)digex(_dot_)net> writes:
...
:0
* ^TOsome_mailing_list_
* ^Subject.*((_situation_1_here_)|(_situation_2_here)|(_situation_3_here))
{
INCLUDERC=$PMDIR/bitbucket.rc
}
...
   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.

Doesn't the ".*" right after "Subject" cover this case?  If not (say, the
(FWD) is 'inside' what _situation_two_here_ matches, then just stick a
        (\(FWD\) *)?
in the appropriate place.


Philip Guenther

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