Skip to content

Commit 0362baf

Browse files
author
Marius Burkard
committed
- added check
1 parent 0c3e00e commit 0362baf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

server/plugins-available/rspamd_plugin.inc.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,13 @@ function user_settings_update($event_name, $data, $internal = false) {
345345
}
346346
}
347347

348-
foreach($entries_to_update['mail_user'] as $entry) {
349-
$this->user_settings_update('mail_user_' . $mode, $entry, true);
350-
}
351-
foreach($entries_to_update['mail_forwarding'] as $entry) {
352-
$this->user_settings_update('mail_forwarding_' . $mode, $entry, true);
348+
if($is_domain === true) {
349+
foreach($entries_to_update['mail_user'] as $entry) {
350+
$this->user_settings_update('mail_user_' . $mode, $entry, true);
351+
}
352+
foreach($entries_to_update['mail_forwarding'] as $entry) {
353+
$this->user_settings_update('mail_forwarding_' . $mode, $entry, true);
354+
}
353355
}
354356

355357
if($internal !== true && $mail_config['content_filter'] == 'rspamd'){

0 commit comments

Comments
 (0)