From fcd8cfa4f49dccefabaf55db6fbfe5285c64f2bd Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Sun, 27 Aug 2017 14:05:38 +0200 Subject: [PATCH] Rspamd user settings: don't print all email addresses of a domain The ucl_rcpts function can already deal with domains, so lets use this capability. --- data/conf/rspamd/dynmaps/settings.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/data/conf/rspamd/dynmaps/settings.php b/data/conf/rspamd/dynmaps/settings.php index 56481e5e..9291a014 100644 --- a/data/conf/rspamd/dynmaps/settings.php +++ b/data/conf/rspamd/dynmaps/settings.php @@ -83,7 +83,7 @@ function ucl_rcpts($object, $type) { $rcpt[] = '/.*@' . $object . '/i'; $stmt = $pdo->prepare("SELECT `alias_domain` FROM `alias_domain` WHERE `target_domain` = :object"); - $stmt->execute(array(':object' => $row['object'])); + $stmt->execute(array(':object' => $object)); $alias_domains = $stmt->fetchAll(PDO::FETCH_ASSOC); array_filter($alias_domains); while ($row = array_shift($alias_domains)) { @@ -112,7 +112,7 @@ while ($row = array_shift($rows)) { score_ { priority = 4; rcpt = ""; priority = 5; rcpt = ""; priority = 6; rcpt = ""; priority = 5; rcpt = ""; priority = 6; rcpt = ""; priority = 5; rcpt = ""; priority = 6; rcpt = ""; priority = 5; rcpt = ""; priority = 6; rcpt = "";