I've got over 700 lines of custom rules in my user_prefs file, and it generally works very well. But there are times when I find myself writing the same rule over and over again, with slight variations. For example:

uri AmericaMessage /America-message/i
score AmericaMessage 3
describe AmericaMessage URL contains "America-message"

uri UnitedEuropeLtd /UnitedEuropeLtd/i
score UnitedEuropeLtd 3
describe UnitedEuropeLtd URL contains "UnitedEuropeLtd"

uri PrimeTimeDirect /PrimeTimeDirect/i
score PrimeTimeDirect 3
describe PrimeTimeDirect URL contains "PrimeTimeDirect"


et. al.

Is there a mechanism for referring to the matched string in the describe line? I might want to do something like this:

uri SpamHaus /(PrimeTimeDirect|UnitedEuropeLtd|America-message)/i
score SpamHaus 3
describe SpamHaus URL contains "$1"

Or maybe there is a built-in mechanism for listing known spamhausen? Is there any central listing of problematic URLs?



Thanks for the suggestions!



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to