diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-01 22:19:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-01 22:19:10 +0100 |
commit | c32f5955464011ee2ec9067d9c3fd9aa0c0d693e (patch) | |
tree | ac33bd6b26f4618c937bda7a80e0c8dc7c5b743a /rules | |
parent | 951abdc56443ab7d3529447fd1b28a2fb78f292c (diff) | |
download | rspamd-c32f5955464011ee2ec9067d9c3fd9aa0c0d693e.tar.gz rspamd-c32f5955464011ee2ec9067d9c3fd9aa0c0d693e.zip |
Do not add R_UNDISC_RCPT when 'To' is missing.
Issue: #387
Diffstat (limited to 'rules')
-rw-r--r-- | rules/regexp/headers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 9255de792..50bc4d07e 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -57,7 +57,7 @@ reconf['MISSING_TO']= '!raw_header_exists(To)'; -- Detects undisclosed recipients local undisc_rcpt = 'To=/^<?undisclosed[- ]recipient/Hi' -reconf['R_UNDISC_RCPT'] = string.format('(%s) | (%s)', reconf['MISSING_TO'], undisc_rcpt) +reconf['R_UNDISC_RCPT'] = string.format('(%s)', undisc_rcpt) -- Detects missing Message-Id local has_mid = 'header_exists(Message-Id)' |