]> source.dussan.org Git - rspamd.git/commitdiff
Do not add R_UNDISC_RCPT when 'To' is missing.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 1 Oct 2015 21:19:10 +0000 (22:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 1 Oct 2015 21:19:10 +0000 (22:19 +0100)
Issue: #387

rules/regexp/headers.lua

index 9255de792be50a5d2e313eabb1d003a49c83860c..50bc4d07eacb1152e491648df75343c784171661 100644 (file)
@@ -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)'