From: Vsevolod Stakhov Date: Fri, 14 May 2010 13:12:55 +0000 (+0400) Subject: * Fix awfull bug in classifying when first statfile has twice weight than second... X-Git-Tag: 0.3.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b5d1aa9540e46fb2f820d01dbb63c035ab0af18;p=thirdparty%2Frspamd.git * Fix awfull bug in classifying when first statfile has twice weight than second... * Fix undisclosed recipients detection --- diff --git a/conf/lua/regexp/headers.lua b/conf/lua/regexp/headers.lua index b775f72a91..07f9a785c5 100644 --- a/conf/lua/regexp/headers.lua +++ b/conf/lua/regexp/headers.lua @@ -33,7 +33,7 @@ reconf['R_BAD_CTE_7BIT'] = string.format('(%s) & (%s) & (%s)', r_ctype_text, r_c reconf['MISSING_TO']= '!header_exists(To)'; -- Detects undisclosed recipients -local undisc_rcpt = 'To=/^data; + data.sum = 0; + data.count = 0; if ((data.file = statfile_pool_is_open (pool, st->path)) == NULL) { if ((data.file = statfile_pool_open (pool, st->path, st->size, FALSE)) == NULL) { msg_warn ("cannot open %s, skip it", st->path);