procmail
[Top] [All Lists]

filter rules using variables

2003-02-14 12:28:22

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

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