Remove old code

master
andryyy 2017-06-26 23:17:46 +02:00
parent 4f93bfd04f
commit 6cd44b4136
1 changed files with 1 additions and 9 deletions

View File

@ -7,9 +7,6 @@ rspamd_config.MAILCOW_AUTH = {
end
}
local redis_params
redis_params = rspamd_parse_redis_server('tag_settings')
if redis_params then
rspamd_config:register_symbol({
name = 'TAG_MOO',
type = 'postfilter',
@ -20,11 +17,6 @@ rspamd_config:register_symbol({
local tagged_rcpt = task:get_symbol("TAGGED_RCPT")
local mailcow_domain = task:get_symbol("RCPT_MAILCOW_DOMAIN")
local user = task:get_recipients(0)[1]['user']
local domain = task:get_recipients(0)[1]['domain']
local rcpt = user .. '@' .. domain
if tagged_rcpt and mailcow_domain then
local tag = tagged_rcpt[1].options[1]
rspamd_logger.infox("found tag: %s", tag)
@ -57,5 +49,5 @@ rspamd_config:register_symbol({
end,
priority = 11
})
end