summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0ed2ad4)
raw | patch | inline | side by side (parent: 0ed2ad4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 13:34:45 +0000 (13:34 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 13:34:45 +0000 (13:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19979 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc b/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc
index bbb081b7ebcdccf6a94792d0bf54c8bb237d0fbb..847b90982137e392c09ac1531827759c8a8716ef 100644 (file)
# // on save();
# $memberList = array();
# $primaryMailAddress = "";
+# $mailSizeLimit = NULL;
# $alternateAddresses = array();
#
# if($is_account){
# return;
# }
#
+# // Load mail size limitation settings
+# $mailSizeLimit = $rpc->gwDistGetMailLimit($this->orig_cn);
+# if(!$rpc->success()){
+# $this->rpcError = TRUE;
+# $this->rpcErrorMessage = $rpc->get_error();
+# $message = sprintf(_("Failed to load mail size limit for distribution list '%s'! Error was: '%s'."),
+# $this->orig_cn, $rpc->get_error());
+# msg_dialog::display(_("Error"),msgPool::rpcError($message), ERROR_DIALOG);
+# return;
+# }
# }
$is_account = TRUE;
$primaryMailAddress = 'technik@gonicus.de';
$memberList = array('hape');
$alternateAddresses = array("schinken@gonicus.de","wurst@gonicus.de");
+ $mailSizeLimit = 222;
// Store values as current and initial values (saved_attributes)
// to be able to keep track och changes.
$this->memberList = $this->saved_attributes['memberList'] = $memberList;
$this->primaryMailAddress = $this->saved_attributes['primaryMailAddress'] = $primaryMailAddress;
$this->alternateAddresses = $this->saved_attributes['alternateAddresses'] = $alternateAddresses;
+ $this->mailSizeLimit = $this->saved_attributes['mailSizeLimit'] = $mailSizeLimit;
$this->initialized = TRUE;
}
}
}
+ // Updated mail size limitations, if needed:
+ // -> is a new distribution list or
+ // -> the value for 'mailSizeLimit' has changed.
+ if(!$this->initially_was_account || $this->mailSizeLimit != $this->saved_attributes['mailSizeLimit']){
+ $rpc->gwDistSetMailLimit($this->cn, $this->mailSizeLimit);
+ if(!$rpc->success()){
+ $message = sprintf(_("Failed to update mail size limitations for distribution list '%s'! Error was: '%s'."),
+ $this->cn, $rpc->get_error());
+ msg_dialog::display(_("Error"),msgPool::rpcError($message), ERROR_DIALOG);
+ }
+ }
+
// Updated alternate mail addresses, if needed:
// -> is a new distribution list or
// -> the value for 'alternateAddresses' has changed.