mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-15 09:00:26 +08:00
Remove old code
This commit is contained in:
parent
4f93bfd04f
commit
6cd44b4136
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user