In your message dated Fri, 14 Feb 2003 10:28:02 -0900, Luke Middle said
that ...
I Use this:
# Mark bad subjects as spam
:0 W
* ?formail -x"Subject:"\
| egrep -is -f ${HOME}/badsubject
{
:0 hif
| formail -A"X-badsubject: Subject Failed"
:0 hif
* ^Subject:[ ]*\/.*
| formail -I"Subject: Spamtrap: ${MATCH}"
:0
* ^Subject:[ ]*\/.*
{
LOG="X-badsubject: ${MATCH}
"
:0:
$SPAMFOLDER
}
}
Hi procmail gang,
I have been poking around google land and I have not been able to find
an example of the syntax to have a variable in filter rules. What I
would like to do is have requesting users have a .procmailrc with
subject, from, and body filtering rules but have the word list point to
a file on the server. My reasoning is that words change and spammers of
questionable content are getting tricky by trying to mask the naughty
words. It would be simple to have a central list for management and
frankly I do not want 50+ copies of filter rules with questionable
content in the .procmailrc files all over my mail server.
My thought was to do something similar to shell syntax:
wordlist=/path/to/list.txt
:0 B
*.*$wordlist
/path/to/naughtymail
This of course is not working. I also tried using quotes as suggested
by one list but that did not help either.
Any ideas? My reasoning for not using a blanket procmailrc file is that
many users do not want any filtering, which I will respect.
Thanks for you time!
-Luke
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
--
Best Regards,
Tim Rice
---------------
Phuket Thailand
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail