Recipient Limitation(s)
Mark Sapiro
mark at msapiro.net
Sun Jul 26 18:54:56 IST 2009
On Sat, Jul 25, 2009 at 04:56:37PM +0100, Steve Freegard wrote:
>
> These rules could also be simplified considerably and reduce their
> overhead by better regexp (using capturing parenthesis in SA simply
> wastes memory) so:
>
> header COUNT_TO To =~ /(?:\S+@\S+)/
> tflags COUNT_TO multiple
> score COUNT_TO 0.1
>
> header COUNT_CC Cc =~ /(?:\S+@\S+)/
> tflags COUNT_CC multiple
> score COUNT_CC 0.1
>
> These would add 0.1 for every e-mail address in the To and Cc headers;
> to 20 recipients would add 2 to the computed score.
Actually, I think the above regexps would better be something like
header COUNT_TO To =~ /(?:[^@,\s]+@[^@,\s]+)/
header COUNT_CC Cc =~ /(?:[^@,\s]+@[^@,\s]+)/
Otherwise they match the whole header value in something like
To: <user1 at example.com>,<user2 at example.com>
--
Mark Sapiro mark at msapiro net The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the MailScanner
mailing list