Skip to content

Commit 69b6297

Browse files
author
Marius Burkard
committed
Merge branch '6111-rspamd-spamfilter-write-loop-for-alias-domain' into 'develop'
Resolve "rspamd spamfilter write loop for alias domain" Closes #6111 See merge request ispconfig/ispconfig3!1452
2 parents 875a107 + 4991d0e commit 69b6297

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/plugins-available/rspamd_plugin.inc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ function user_settings_update($event_name, $data, $internal = false) {
200200
$is_domain = true;
201201
}
202202

203+
$app->log("rspamd: user_settings_update() for $type $email_address", LOGLEVEL_DEBUG);
204+
203205
if($settings_name == '') {
204206
// missing settings file name
205207
$app->log('Empty rspamd identifier in rspamd_plugin from identifier: ' . $use_data . '/' . $identifier, LOGLEVEL_WARN);
@@ -217,7 +219,7 @@ function user_settings_update($event_name, $data, $internal = false) {
217219
$entries_to_update['mail_user'] = $mailusers;
218220
}
219221

220-
$forwardings = $app->db->queryAllRecords("SELECT mf.* FROM mail_forwarding as mf LEFT JOIN spamfilter_users as su ON (su.email = mf.source) WHERE mf.source LIKE ? AND su.id IS NULL", '%' . $email_address);
222+
$forwardings = $app->db->queryAllRecords("SELECT mf.* FROM mail_forwarding as mf LEFT JOIN spamfilter_users as su ON (su.email = mf.source) WHERE mf.source LIKE ? AND su.id IS NULL", '%_' . $email_address);
221223
if(is_array($forwardings) && !empty($forwardings)) {
222224
$entries_to_update['mail_forwarding'] = $forwardings;
223225
}

0 commit comments

Comments
 (0)