diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-11 14:43:14 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-11 14:43:14 +0000 |
commit | 76928b633f9595c425826fa269d0bb6ce9ff693b (patch) | |
tree | a29809637ed8381eedcc049555317bf7a0381708 /rules/regexp/headers.lua | |
parent | af1871ee4fc7fdc158195b0d732b18467772c8b4 (diff) | |
download | rspamd-76928b633f9595c425826fa269d0bb6ce9ff693b.tar.gz rspamd-76928b633f9595c425826fa269d0bb6ce9ff693b.zip |
[Minor] Treat 'In-Reply-To' as 'References'
Issue: #2042
Closes: #2042
Diffstat (limited to 'rules/regexp/headers.lua')
-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 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'] = { |