diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-02 22:40:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-02 22:40:25 +0000 |
commit | f4b07d3bc2b7a7e111e0c8bc85ce5e586d9f8c87 (patch) | |
tree | 561c9c401abc036b37981262b8a00ee833a0cad6 /src | |
parent | 3053127c4119f522c60a58192c58a7775acd7577 (diff) | |
download | rspamd-f4b07d3bc2b7a7e111e0c8bc85ce5e586d9f8c87.tar.gz rspamd-f4b07d3bc2b7a7e111e0c8bc85ce5e586d9f8c87.zip |
Limited support of MESSAGEID.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/spamassassin.lua | 6 |
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 |