commit 83dfe58: [Minor] Write email address in options
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed May 22 13:35:04 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-05-22 14:13:29 +0100
URL: https://github.com/rspamd/rspamd/commit/83dfe58bd168a7446d65a0c2a39a8b5a29f34ad9 (HEAD -> master)
[Minor] Write email address in options
---
src/plugins/lua/emails.lua | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua
index aca72cb0a..6c23daf79 100644
--- a/src/plugins/lua/emails.lua
+++ b/src/plugins/lua/emails.lua
@@ -150,16 +150,16 @@ local function check_email_rule(task, rule, addr)
if rule['domain_only'] then
local key = addr.domain
if rule['map']:get_key(key) then
- task:insert_result(rule['symbol'], 1)
- logger.infox(task, '<%1> email: \'%2\' is found in list: %3',
- task:get_message_id(), key, rule['symbol'])
+ task:insert_result(rule['symbol'], 1.0, key)
+ logger.debugm(N, task, 'email: \'%s\' is found in list: %s',
+ key, rule['symbol'])
end
else
local key = string.format('%s%s%s', addr.user, rule.delimiter, addr.domain)
if rule['map']:get_key(key) then
- task:insert_result(rule['symbol'], 1)
- logger.infox(task, '<%1> email: \'%2\' is found in list: %3',
- task:get_message_id(), key, rule['symbol'])
+ task:insert_result(rule['symbol'], 1.0, key)
+ logger.debugm(N, task, 'email: \'%s\' is found in list: %s',
+ key, rule['symbol'])
end
end
end
More information about the Commits
mailing list