From 91d309653225d6a97c93043d548a7450d65a99f7 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 4 Sep 2006 03:49:36 +0000 Subject: [PATCH] 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 --- include/class_mail-methods-kolab.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); + } } } -- 2.30.2