]> source.dussan.org Git - rspamd.git/commitdiff
Limited support of MESSAGEID.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Mar 2015 22:40:25 +0000 (22:40 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Mar 2015 22:40:25 +0000 (22:40 +0000)
src/plugins/lua/spamassassin.lua

index 749336d754d3105986bb273018f5aeffa61639cc..bfda3824efac989c430d5858d7c52851cf9279df 100644 (file)
@@ -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