Article 549EZ spamassasin custom rules

spamassasin custom rules

by
qrange
from LinuxQuestions.org on (#549EZ)
I have a lot of custom rules in 'local.cf' like these:

Code:header LOCAL_DEMONSTRATION1_FROM From =~ /user1/i
score LOCAL_DEMONSTRATION1_FROM 20
header LOCAL_DEMONSTRATION2_FROM From =~ /user2/i
score LOCAL_DEMONSTRATION2_FROM 20
header LOCAL_DEMONSTRATION3_FROM From =~ /user3/i
score LOCAL_DEMONSTRATION3_FROM 20would it be better to write it like:

Code:header LOCAL_DEMONSTRATION_FROM From =~ /user1|user2|user3/i
score LOCAL_DEMONSTRATION_FROM 20given that From cannot contain several addresses?
is there any way to make it faster?
as it is, it takes about 3 seconds per message to score it, is that abnormal?

thanks.latest?d=yIl2AUoC8zA latest?i=aiX4q0kbntM:2qtrBxHQvy4:F7zBnMy latest?i=aiX4q0kbntM:2qtrBxHQvy4:V_sGLiP latest?d=qj6IDK7rITs latest?i=aiX4q0kbntM:2qtrBxHQvy4:gIN9vFwaiX4q0kbntM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments