In my opinion do not give load to Mailscanner for these kind of activity,Use some policyd kind of throttling.....<br><br><div class="gmail_quote">On Sun, Jul 26, 2009 at 11:24 PM, Mark Sapiro <span dir="ltr"><<a href="mailto:mark@msapiro.net">mark@msapiro.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Sat, Jul 25, 2009 at 04:56:37PM +0100, Steve Freegard wrote:<br>
><br>
> These rules could also be simplified considerably and reduce their<br>
> overhead by better regexp (using capturing parenthesis in SA simply<br>
> wastes memory) so:<br>
><br>
> header COUNT_TO To =~ /(?:\S+@\S+)/<br>
> tflags COUNT_TO multiple<br>
> score COUNT_TO 0.1<br>
><br>
> header COUNT_CC Cc =~ /(?:\S+@\S+)/<br>
> tflags COUNT_CC multiple<br>
> score COUNT_CC 0.1<br>
><br>
> These would add 0.1 for every e-mail address in the To and Cc headers;<br>
> to 20 recipients would add 2 to the computed score.<br>
<br>
<br>
</div>Actually, I think the above regexps would better be something like<br>
<br>
header COUNT_TO To =~ /(?:[^@,\s]+@[^@,\s]+)/<br>
header COUNT_CC Cc =~ /(?:[^@,\s]+@[^@,\s]+)/<br>
<br>
Otherwise they match the whole header value in something like<br>
<br>
To: <<a href="mailto:user1@example.com">user1@example.com</a>>,<<a href="mailto:user2@example.com">user2@example.com</a>><br>
<div class="im"><br>
--<br>
Mark Sapiro mark at msapiro net The highway is for gamblers,<br>
San Francisco Bay Area, California better use your sense - B. Dylan<br>
--<br>
</div><div><div></div><div class="h5">MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
</div></div></blockquote></div><br>