From cbfd8651370aabedcd4f0285de8630ae3958ce4e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 3 Sep 2014 18:30:42 +0100 Subject: [PATCH] Fix emails plugin. --- src/plugins/lua/emails.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua index ffe45d5e2..5f02a3468 100644 --- a/src/plugins/lua/emails.lua +++ b/src/plugins/lua/emails.lua @@ -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 -- 2.39.5