From 9b5d1aa9540e46fb2f820d01dbb63c035ab0af18 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 14 May 2010 17:12:55 +0400 Subject: [PATCH] * Fix awfull bug in classifying when first statfile has twice weight than second... * Fix undisclosed recipients detection --- conf/lua/regexp/headers.lua | 2 +- src/classifiers/winnow.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.3