]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Write email address in options
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 May 2019 13:13:29 +0000 (14:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 May 2019 13:13:29 +0000 (14:13 +0100)
src/plugins/lua/emails.lua

index aca72cb0a38706e68d21d0b20b77bf9be2c636b2..6c23daf79393879cb26216c239330dd36c66cc41 100644 (file)
@@ -150,16 +150,16 @@ local function check_email_rule(task, rule, addr)
       if rule['domain_only'] then
         local key = addr.domain
         if rule['map']:get_key(key) then
-          task:insert_result(rule['symbol'], 1)
-          logger.infox(task, '<%1> email: \'%2\' is found in list: %3',
-              task:get_message_id(), key, rule['symbol'])
+          task:insert_result(rule['symbol'], 1.0, key)
+          logger.debugm(N, task, 'email: \'%s\' is found in list: %s',
+              key, rule['symbol'])
         end
       else
         local key = string.format('%s%s%s', addr.user, rule.delimiter, addr.domain)
         if rule['map']:get_key(key) then
-          task:insert_result(rule['symbol'], 1)
-          logger.infox(task, '<%1> email: \'%2\' is found in list: %3',
-              task:get_message_id(), key, rule['symbol'])
+          task:insert_result(rule['symbol'], 1.0, key)
+          logger.debugm(N, task, 'email: \'%s\' is found in list: %s',
+              key, rule['symbol'])
         end
       end
     end