Hi,
On Mon, Aug 8, 2011 at 4:16 PM, Andrew Colin Kissa <[email protected]> wrote:
>
> On 08 Aug 2011, at 4:13 PM, Mikael Syska wrote:
>
>> Is it possible at the momemt to make a rule about what message that
>> "BaruwaSQL.pm" should log to the database? While its nice to have all
>> the information about amount of spam received its also just making it
>> slower to log everything. Especially when the SA-score is above 30.
>
> No, but am sure a simple modification to the code can achieve that.
yes, just wanted to make sure I was not missing anything.
Added this to the BaruwaSQL.pm
if($$message{sascore} > 20)
{
MailScanner::Log::InfoLog("Skipping message $$message{id} with
sa-score $$message{sascore} to Baruwa SQL");
return;
}
As you said ... simple and it works. Now I also learned some Perl
today. But still a little confused about the $ and $$ ...
>
> --
> Baruwa - www.baruwa.org
>
> _______________________________________________
> Baruwa mailing list
> [email protected]
> http://lists.baruwa.org/mailman/listinfo/baruwa
> Keep Baruwa FREE - http://pledgie.com/campaigns/12056
>
mvh
Mikael Syska
_______________________________________________
Baruwa mailing list
[email protected]
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056