From: Vsevolod Stakhov Date: Sun, 11 Mar 2018 14:43:14 +0000 (+0000) Subject: [Minor] Treat 'In-Reply-To' as 'References' X-Git-Tag: 1.7.0~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=76928b633f9595c425826fa269d0bb6ce9ff693b;p=rspamd.git [Minor] Treat 'In-Reply-To' as 'References' Issue: #2042 Closes: #2042 --- diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 39ae3c8cb..e80380197 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -621,7 +621,7 @@ local ua_pan = 'User-Agent=/^Pan/H' local ua_xnews = 'User-Agent=/^Xnews/H' local no_inr_yes_ref = string.format('(%s) | (%s) | (%s) | (%s) | (%s) | (%s) | (%s) | (%s) | (%s) | (%s) | (%s)', xm_gnus, xm_msoe5, xm_msoe6, xm_moz4, xm_skyri, xm_wwwmail, ua_gnus, ua_knode, ua_mutt, ua_pan, ua_xnews) local subj_re = 'Subject=/^R[eE]:/H' -local has_ref = 'header_exists(References)' +local has_ref = '(header_exists(References) | header_exists(In-Reply-To))' local missing_ref = string.format('!(%s)', has_ref) -- Fake reply (has RE in subject, but has not References header) reconf['FAKE_REPLY_C'] = {