]> source.dussan.org Git - rspamd.git/commitdiff
Fix emails plugin.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Sep 2014 17:30:42 +0000 (18:30 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Sep 2014 17:30:42 +0000 (18:30 +0100)
src/plugins/lua/emails.lua

index ffe45d5e2297ad37aa49a8e8a5469c5562b00285..5f02a3468e1fa3ec99083d4372f44a45600dcbc4 100644 (file)
@@ -12,7 +12,7 @@ local function check_email_rule(task, rule, addr)
                task:inc_dns_req()
                if results then
                        logger.info(string.format('<%s> email: [%s] resolved for symbol: %s', 
-                               task:get_message():get_message_id(), to_resolve, rule['symbol']))
+                               task:get_message_id(), to_resolve, rule['symbol']))
                        task:insert_result(rule['symbol'], 1)
                end
        end
@@ -31,14 +31,14 @@ local function check_email_rule(task, rule, addr)
                        if rule['map']:get_key(key) then
                                task:insert_result(rule['symbol'], 1)
                                logger.info(string.format('<%s> email: \'%s\' is found in list: %s', 
-                                       task:get_message():get_message_id(), key, rule['symbol']))
+                                       task:get_message_id(), key, rule['symbol']))
                        end
                else
                        local key = string.format('%s@%s', addr:get_user(), addr:get_host())
                        if rule['map']:get_key(key) then
                                task:insert_result(rule['symbol'], 1)
                                logger.info(string.format('<%s> email: \'%s\' is found in list: %s', 
-                                       task:get_message():get_message_id(), key, rule['symbol']))
+                                       task:get_message_id(), key, rule['symbol']))
                        end
                end
        end