Skip to content

Commit b7fdc6c

Browse files
committed
update mailfetch records, it could fix #3499
1 parent 3645f76 commit b7fdc6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

interface/web/mail/mail_domain_edit.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ function onAfterUpdate() {
389389
//* Update the mailinglist
390390
$app->db->query("UPDATE mail_mailinglist SET sys_userid = $client_user_id, sys_groupid = $sys_groupid WHERE domain = '".$app->db->quote($this->oldDataRecord['domain'])."'");
391391

392+
//* Update the mailget records
393+
$app->db->query("UPDATE mail_get SET destination=REPLACE(destination, '".$app->db->quote($this->oldDataRecord['domain'])."', '".$app->db->quote($this->dataRecord['domain'])."'), sys_userid = $client_user_id, sys_groupid = $sys_groupid WHERE destination LIKE '%@".$app->db->quote($this->oldDataRecord['domain'])."'");
394+
392395
//* Delete the old spamfilter record
393396
$tmp = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '@".$app->db->quote($this->oldDataRecord["domain"])."'");
394397
$app->db->datalogDelete('spamfilter_users', 'id', $tmp["id"]);

0 commit comments

Comments
 (0)