diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-03 18:30:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-03 18:30:42 +0100 |
commit | cbfd8651370aabedcd4f0285de8630ae3958ce4e (patch) | |
tree | baf153b65063068abecd1d9eb57573524697cb1d /src/plugins | |
parent | d02a8bb6b37ead401da283ff68907355555b63db (diff) | |
download | rspamd-cbfd8651370aabedcd4f0285de8630ae3958ce4e.tar.gz rspamd-cbfd8651370aabedcd4f0285de8630ae3958ce4e.zip |
Fix emails plugin.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/emails.lua | 6 |
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 |