Below is a shortened list of subject lines that I filter against. If a
message arrives for a user not in the whitelist file, and the subject is
like one listed, then drop the message.
It may seem strange, but I use different mailboxes depending on the
forum I am posting to (eg. procmail(_at_)mydomain(_dot_)com), and as I don't
have a
complete list of all mailboxes I've used, I can't just reject if not on
the whitelist, but I *will* reject if the subject line is matched too.
1.
If using a list defined in the recipe like below, I have to remember to
*not* put a | symbol before the line continuation symbol for the last
item in the list. Otherwise, it matches everything (as it should). To
keep things simple (eg. leaving the closing bracket on a line by
itself), should I just use a string that I don't think would ever appear
in a subject line?
2.
Ideally, I would like to do a lookup in a list (like I do with
RCPT_WHITELIST), but it seems that fgrep cannot perform regex matching.
Is that correct? What would anyone recommend for this situation?
Many thanks,
Steve :)
:0
* ^X-Original-To: \/[^(_at_)]+
* ! $? echo $MATCH | fgrep -i -x -f $RCPT_WHITELIST
* ^Subject: (\
\*\*|\
=\?|\
\?\?|\
auto.\*|\
delivery.\*|\
fail.\*|\
mail.\*|\
message.\*|\
notifica.\*|\
returned.\*|\
undeliver.\*\
)
return-junk
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail