[Mimedefang] Browser Bug: Very bad in IE and varies on Netscape and Mozilla
David F. Skoll
dfs at roaringpenguin.com
Fri Dec 19 21:11:20 EST 2003
On Sat, 20 Dec 2003, Jonas Eckerman wrote:
> uri KAM_URIPARSE /[a-z]+\:\/\/\%0[01].*\@/
Using a regular expression like that in SpamAssassin is Very Bad News.
SA treats the entire message as one humongous line, and an unlimited
quantifier (as in ".*" or "[a-z]+") will be really, really slow.
Writing SA rules is incredibly tricky. You can limit it to something
reasonable by using {0,50} everywhere you'd normally be tempted to use *,
and {1,50} where you'd normally be tempted to use +
--
David.
More information about the MIMEDefang
mailing list