* Fix undisclosed recipients detection
reconf['MISSING_TO']= '!header_exists(To)';
-- Detects undisclosed recipients
-local undisc_rcpt = 'To=/^<?undisclosed-recipient/Hi'
+local undisc_rcpt = 'To=/^<?undisclosed[- ]recipient/Hi'
reconf['R_UNDISC_RCPT'] = string.format('(%s) | (%s)', reconf['MISSING_TO'], undisc_rcpt)
-- Detects missing Message-Id
g_assert (ctx != NULL);
data.pool = pool;
- data.sum = 0;
- data.count = 0;
data.now = time (NULL);
data.ctx = ctx;
}
while (cur) {
st = cur->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);