]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Set alias flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Apr 2019 09:20:01 +0000 (10:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Apr 2019 09:20:17 +0000 (10:20 +0100)
rules/misc.lua

index 1cc7bfc22982f820bc4a0f91848534f80e98dcf8..6c07389765e83d450ffefbca99de16ff89628ae6 100644 (file)
@@ -457,7 +457,7 @@ local aliases_id = rspamd_config:register_symbol{
         local addr = task:get_from(type)[1]
         local na,tags = rspamd_lua_utils.remove_email_aliases(addr)
         if na then
-          task:set_from(type, addr)
+          task:set_from(type, addr, 'alias')
           task:insert_result('TAGGED_FROM', 1.0, fun.totable(
             fun.filter(function(t) return t and #t > 0 end, tags)))
         end