summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b03d92c)
raw | patch | inline | side by side (parent: b03d92c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Dec 2007 07:19:42 +0000 (07:19 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Dec 2007 07:19:42 +0000 (07:19 +0000) |
-Fixed mail Vacation Start Stop
-Added Checks
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8140 594d385d-05f5-0310-b6e9-bd551577e9d8
-Added Checks
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8140 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/mail/class_mailAccount.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/mail/class_mailAccount.inc b/gosa-core/plugins/personal/mail/class_mailAccount.inc
index d9db8f2092dc09a4102dfb5d0ea7705569d31b94..ab3c46585d6ff1f9f804b1338f9719adfac6e6b7 100644 (file)
{
global $class_mapping;
+ $this->gosaVacationStart = time();
+ $this->gosaVacationStop = time();
+
/* Load bases attributes */
plugin::plugin($config, $dn);
return($ret);
}
+
+ function multiple_check()
+ {
+ $message = plugin::multiple_check();
+
+ if(empty($this->gosaMailServer) && in_array("gosaMailServer",$this->multi_boxes)){
+ $message[]= _("There is no valid mailserver specified, please add one in the system setup.");
+ }
+
+ /* Check quota */
+ if ($this->gosaMailQuota != '' && in_array("gosaMailQuota",$this->multi_boxes)){
+ if (!is_numeric($this->gosaMailQuota)) {
+ $message[]= _("Value in 'Quota size' is not valid.");
+ } else {
+ $this->gosaMailQuota= (int) $this->gosaMailQuota;
+ }
+ }
+
+ /* Check rejectsize for integer */
+ if ($this->gosaMailMaxSize != '' && in_array("gosaMailMaxSize",$this->multi_boxes)){
+ if (!is_numeric($this->gosaMailMaxSize)){
+ $message[]= _("Please specify a vaild mail size for mails to be rejected.");
+ } else {
+ $this->gosaMailMaxSize= (int) $this->gosaMailMaxSize;
+ }
+ }
+
+ if(empty($this->gosaSpamMailbox) && in_array("gosaSpamMailbox",$this->multi_boxes)){
+ $message[]= _("You specified Spam settings, but there is no Folder specified.");
+ }
+
+ if ( in_array("use_vacation",$this->multi_boxes) &&
+ preg_match('/V/', $this->gosaMailDeliveryMode) && $this->gosaVacationStart > $this->gosaVacationStop){
+ $message[]= _("Time interval to show vacation message is not valid.");
+ }
+ return($message);
+ }
+
+
function set_multi_edit_values($values)
{
plugin::set_multi_edit_values($values);