Merge pull request #125 from andryyy/dev

Dev to master
master
André Peters 2017-03-17 19:23:39 +01:00 committed by GitHub
commit 009f2e808f
2 changed files with 47 additions and 41 deletions

View File

@ -23,7 +23,10 @@ auth_domain_map = rspamd_config:add_map({
description = 'Map of domains we are authoritative for'
})
rspamd_config:register_post_filter(function(task)
rspamd_config:register_symbol({
name = 'TAG_MOO',
type = 'postfilter',
callback = function(task)
local util = require("rspamd_util")
local rspamd_logger = require "rspamd_logger"
@ -41,7 +44,8 @@ rspamd_config:register_post_filter(function(task)
if action ~= 'no action' and action ~= 'greylist' then
rspamd_logger.infox("skipping tag handler for action: %s", action)
return false
task:set_metric_action('default', action)
return true
end
if authdomain then
@ -67,7 +71,9 @@ rspamd_config:register_post_filter(function(task)
end
return false
end
end)
end,
priority = 10
})
rspamd_config.MRAPTOR = {
callback = function(task)

View File

@ -3320,7 +3320,7 @@ function mailbox_edit_alias_domain($postarray) {
$stmt = $pdo->prepare("UPDATE `alias_domain` SET
`alias_domain` = :alias_domain,
`active` = :active,
`modified` = :modified,
`modified` = :modified
WHERE `alias_domain` = :alias_domain_now");
$stmt->execute(array(
':alias_domain' => $alias_domain,