[Rspamd] Fix tag handling for mailboxes
parent
781ca3c07e
commit
9034e0f3a8
|
@ -167,7 +167,8 @@ catch (PDOException $e) {
|
|||
exit;
|
||||
}
|
||||
|
||||
if (count($rcpt_final_mailboxes) == 1 && $rcpt_final_mailboxes[0] != $rcpt) {
|
||||
// Does also return the mailbox name if question == answer (query == mailbox)
|
||||
if (count($rcpt_final_mailboxes) == 1) {
|
||||
error_log("ALIASEXP: direct alias " . $rcpt . " expanded to " . $rcpt_final_mailboxes[0] . PHP_EOL);
|
||||
echo trim($rcpt_final_mailboxes[0]);
|
||||
}
|
||||
|
|
|
@ -234,7 +234,7 @@ rspamd_config:register_symbol({
|
|||
|
||||
local function http_callback(err_message, code, body, headers)
|
||||
if body ~= nil and body ~= "" then
|
||||
rspamd_logger.infox(rspamd_config, "expanding alias to \"%s\"", body)
|
||||
rspamd_logger.infox(rspamd_config, "expanding rcpt to \"%s\"", body)
|
||||
|
||||
local function tag_callback_subject(err, data)
|
||||
if err or type(data) ~= 'string' then
|
||||
|
|
Loading…
Reference in New Issue