From: hickert Date: Mon, 4 Sep 2006 03:49:36 +0000 (+0000) Subject: Only add kolab delete flag if required X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=91d309653225d6a97c93043d548a7450d65a99f7;p=gosa.git Only add kolab delete flag if required git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4571 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_mail-methods-kolab.inc b/include/class_mail-methods-kolab.inc index 972314a73..2dc40c17f 100644 --- a/include/class_mail-methods-kolab.inc +++ b/include/class_mail-methods-kolab.inc @@ -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); + } } }