Eric Hilding <eric(_at_)hilding(_dot_)com> writes:
I have a number of different e-mail addresses that all
get routed by default into my main Unix account. There
are several exceptions where I do NOT want my word and
or phrase filters to possibly thrash the mail until I
can personally review it, but trying the * !^TOblah...
line approach doesn't work (which works fine on other
receipes, so I'm dumfounded).
:0 B
* !^TOany-exception-address(_at_)oneofmydomains(_dot_)com
* ()\<(word #1|word #2|word #3|\
some phrase #1|some phrase #2)\>
/dev/null
The 'B' flag is causing procmail to look for the addresses in the body
instead of the header. The solution is to specfiy where to search on
a per-condition basis:
:0 B
* H ?? !^TOany-exception-address(_at_)oneofmydomains(_dot_)com
* ()\<(word #1|word #2|word #3|\
some phrase #1|some phrase #2)\>
/dev/null
or
:0
* !^TOany-exception-address(_at_)oneofmydomains(_dot_)com
* B ?? ()\<(word #1|word #2|word #3|\
some phrase #1|some phrase #2)\>
/dev/null
Philip Guenther