aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-03 18:30:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-03 18:30:42 +0100
commitcbfd8651370aabedcd4f0285de8630ae3958ce4e (patch)
treebaf153b65063068abecd1d9eb57573524697cb1d /src/plugins
parentd02a8bb6b37ead401da283ff68907355555b63db (diff)
downloadrspamd-cbfd8651370aabedcd4f0285de8630ae3958ce4e.tar.gz
rspamd-cbfd8651370aabedcd4f0285de8630ae3958ce4e.zip
Fix emails plugin.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/emails.lua6
1 files 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