aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-02 22:40:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-02 22:40:25 +0000
commitf4b07d3bc2b7a7e111e0c8bc85ce5e586d9f8c87 (patch)
tree561c9c401abc036b37981262b8a00ee833a0cad6 /src
parent3053127c4119f522c60a58192c58a7775acd7577 (diff)
downloadrspamd-f4b07d3bc2b7a7e111e0c8bc85ce5e586d9f8c87.tar.gz
rspamd-f4b07d3bc2b7a7e111e0c8bc85ce5e586d9f8c87.zip
Limited support of MESSAGEID.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/spamassassin.lua6
1 files changed, 6 insertions, 0 deletions
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