|
@@ -1264,11 +1264,13 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|
));
|
|
));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ update_sogo_static_view($username);
|
|
$_SESSION['return'][] = array(
|
|
$_SESSION['return'][] = array(
|
|
'type' => 'success',
|
|
'type' => 'success',
|
|
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
|
|
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
|
|
'msg' => array('mailbox_added', htmlspecialchars($username))
|
|
'msg' => array('mailbox_added', htmlspecialchars($username))
|
|
);
|
|
);
|
|
|
|
+ return true;
|
|
break;
|
|
break;
|
|
case 'resource':
|
|
case 'resource':
|
|
$domain = idn_to_ascii(strtolower(trim($_data['domain'])), 0, INTL_IDNA_VARIANT_UTS46);
|
|
$domain = idn_to_ascii(strtolower(trim($_data['domain'])), 0, INTL_IDNA_VARIANT_UTS46);
|
|
@@ -3130,7 +3132,10 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
|
|
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
|
|
'msg' => array('mailbox_modified', $username)
|
|
'msg' => array('mailbox_modified', $username)
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+ update_sogo_static_view($username);
|
|
}
|
|
}
|
|
|
|
+ return true;
|
|
break;
|
|
break;
|
|
case 'mailbox_templates':
|
|
case 'mailbox_templates':
|
|
if ($_SESSION['mailcow_cc_role'] != "admin") {
|
|
if ($_SESSION['mailcow_cc_role'] != "admin") {
|
|
@@ -5053,12 +5058,15 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|
);
|
|
);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ update_sogo_static_view($username);
|
|
$_SESSION['return'][] = array(
|
|
$_SESSION['return'][] = array(
|
|
'type' => 'success',
|
|
'type' => 'success',
|
|
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
|
|
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
|
|
'msg' => array('mailbox_removed', htmlspecialchars($username))
|
|
'msg' => array('mailbox_removed', htmlspecialchars($username))
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
+ return true;
|
|
break;
|
|
break;
|
|
case 'mailbox_templates':
|
|
case 'mailbox_templates':
|
|
if ($_SESSION['mailcow_cc_role'] != "admin") {
|
|
if ($_SESSION['mailcow_cc_role'] != "admin") {
|
|
@@ -5264,7 +5272,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'mailbox', 'resource')) && getenv('SKIP_SOGO') != "y") {
|
|
|
|
|
|
+ if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'resource')) && getenv('SKIP_SOGO') != "y") {
|
|
update_sogo_static_view();
|
|
update_sogo_static_view();
|
|
}
|
|
}
|
|
}
|
|
}
|