You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interface/web/mail/mail_alias_edit.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -120,8 +120,8 @@ function onSubmit() {
120
120
unset($this->dataRecord["email_local_part"]);
121
121
unset($this->dataRecord["email_domain"]);
122
122
123
-
//* Check if there is no mailbox with this address
124
-
$tmp = $app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE email = '".$app->db->quote($this->dataRecord["source"])."'");
123
+
//* Check if there is no active mailbox with this address
124
+
$tmp = $app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE postfix = 'y' AND email = '".$app->db->quote($this->dataRecord["source"])."'");
Copy file name to clipboardExpand all lines: interface/web/mail/mail_forward_edit.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -117,8 +117,8 @@ function onSubmit() {
117
117
unset($this->dataRecord["email_local_part"]);
118
118
unset($this->dataRecord["email_domain"]);
119
119
120
-
//* Check if there is no mailbox with this address
121
-
$tmp = $app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE email = '".$app->db->quote($this->dataRecord["source"])."'");
120
+
//* Check if there is no active mailbox with this address
121
+
$tmp = $app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE postfix = 'y' AND email = '".$app->db->quote($this->dataRecord["source"])."'");
//* Check if there is no alias or forward with this address
185
-
$tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE source = '".$app->db->quote($this->dataRecord["email"])."'");
185
+
$tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE active = 'y' AND source = '".$app->db->quote($this->dataRecord["email"])."'");
0 commit comments