diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-24 17:54:27 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-24 17:54:27 +0300 |
commit | 93597a0e188332c150ff7429cb344fafb92f38a7 (patch) | |
tree | 5674ac4551287f768359f322ee357afbce13d74e /src | |
parent | 82afd88e2f092c86bdf629ab2ce794eae2bece5e (diff) | |
download | rspamd-93597a0e188332c150ff7429cb344fafb92f38a7.tar.gz rspamd-93597a0e188332c150ff7429cb344fafb92f38a7.zip |
Write message id as well.
Diffstat (limited to 'src')
-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 d72561dd0..80855453d 100644 --- a/src/plugins/lua/emails.lua +++ b/src/plugins/lua/emails.lua @@ -32,7 +32,7 @@ end function emails_dns_cb(task, to_resolve, results, err, symbol) if results then - rspamd_logger.info('found host for: ' .. to_resolve .. ', insert symbol: ' .. symbol) + rspamd_logger.info(string.format('<%s> email: [%s] resolved for symbol: %s', task:get_message():get_message_id(), to_resolve, symbol)) task:insert_result(symbol, 1) end end @@ -52,13 +52,13 @@ function check_email_rule(task, rule, addr) local key = addr:get_host() if rule['map']:get_key(key) then task:insert_result(rule['symbol'], 1) - rspamd_logger.info('email: ' .. key .. ' is found in list: ' .. rule['symbol']) + rspamd_logger.info(string.format('<%s> email: \'%s\' is found in list: %s', task:get_message():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) - rspamd_logger.info('email: ' .. key .. ' is found in list: ' .. rule['symbol']) + rspamd_logger.info(string.format('<%s> email: \'%s\' is found in list: %s', task:get_message():get_message_id(), key, rule['symbol'])) end end end |