From: Vsevolod Stakhov Date: Mon, 2 Mar 2015 22:40:25 +0000 (+0000) Subject: Limited support of MESSAGEID. X-Git-Tag: 0.9.0~573 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f4b07d3bc2b7a7e111e0c8bc85ce5e586d9f8c87;p=rspamd.git Limited support of MESSAGEID. --- diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua index 749336d75..bfda3824e 100644 --- a/src/plugins/lua/spamassassin.lua +++ b/src/plugins/lua/spamassassin.lua @@ -83,6 +83,12 @@ local function process_sa_conf(f) cur_rule['not'] = true end + if cur_rule['header'] == 'MESSAGEID' then + -- Special case for spamassassin + cur_rule['header'] = 'Message-ID' + rspamd_logger.info('MESSAGEID support is limited in ' .. cur_rule['symbol']) + end + cur_rule['re_expr'] = words_to_re(words, 4) cur_rule['re'] = rspamd_regexp.create_cached(cur_rule['re_expr']) if cur_rule['re'] then valid_rule = true end