Skip to content
Snippets Groups Projects
Commit cb0be91c authored by Till Brehm's avatar Till Brehm
Browse files

Prevent 60 seconds delay in mailbox creation when mapping of mailbox zui and...

Prevent 60 seconds delay in mailbox creation when mapping of mailbox zui and gid to web uid and gid is not used.
parent a95251e2
No related branches found
No related tags found
Loading
......@@ -237,8 +237,13 @@ class page_action extends tform_actions {
$this->dataRecord["homedir"] = $mail_config["homedir_path"];
// Will be overwritten by mail_plugin
$this->dataRecord['uid'] = -1;
$this->dataRecord['gid'] = -1;
if ($mail_config["mailbox_virtual_uidgid_maps"] == 'y') {
$this->dataRecord['uid'] = -1;
$this->dataRecord['gid'] = -1;
} else {
$this->dataRecord['uid'] = intval($mail_config["mailuser_uid"]);
$this->dataRecord['gid'] = intval($mail_config["mailuser_gid"]);
}
//* Check if there is no alias or forward with this address
$tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE active = 'y' AND source = ?", $this->dataRecord["email"]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment