Could you kindly explain to me about the @ character and why it needs to be escaped, or in what conditions it needs to be escaped? Eg. you seem to imply that it only needs to be escaped if followed by an alphabetic character. Is that the only rule or are there other occasions when it should be escaped? What's the reason behind this anyway? Is the @ symbol perhaps sometimes used for other purposes (like the . or ? or + or other special regex characters)? I've never read anything before about escaping the @ and I can't find any info on this at the moment eg. at sites like http://www.regular-expressions.info.

Cheers,
Jeremy


----- Original Message ----- From: "Loren Wilton" <[EMAIL PROTECTED]>
To: <users@spamassassin.apache.org>
Sent: Tuesday, February 28, 2006 10:14 AM
Subject: Re: GIF stock spams


Interesting set of rules, they look like they should do fairly well.  I'll
run a masscheck on them in a minute. If they are decent I'm sure SARE would
be happy to include them in the stock spam ruleset if you give permission.

The only thing I see that makes me a little nervous is the unescaped @ in
the first rule.  This is probably working because it isn't followed by an
alphabetic character.  Also you have a few .* or other .+ globs.  It's
always better to do a {0,something} or {1,something} size limit on these to
keep them from running away in unexpected conditions.

You are correct that rawbody rules are largely useless, since they won't
allow any multiline checking. There is flatly no way to check more than one
line in a rawbody rule, so you are forced into using full for this sort of
thing.  A long-standing gripe of mine.

Loren

Reply via email to