Code

Only add kolab delete flag if required
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 03:49:36 +0000 (03:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 03:49:36 +0000 (03:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4571 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_mail-methods-kolab.inc

index 972314a730ba70374c6b87207abddb215d7e1bb3..2dc40c17fb77e4b9695caf110670cc3884563818 100644 (file)
@@ -234,7 +234,11 @@ class mailMethodKolab extends mailMethodCyrus
     foreach($this->attribute_map as $kolabAttr){
       $mailObject->attrs[$kolabAttr] = array();
     }  
-    $mailObject->attrs['kolabDeleteFlag']= preg_replace('%imap://%', '', $mailObject->gosaMailServer);
+
+    /* Only add kolab delete Flag in case of an user.mailAccount */
+    if(!in_array("posixGroup", $mailObject->attrs['objectClass'])){
+      $mailObject->attrs['kolabDeleteFlag']= preg_replace('%imap://%', '', $mailObject->gosaMailServer);
+    }
   }
 
 }