From d260f44d0d4e635b4d183f6d3913e4fe78b82894 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 25 Jul 2006 04:08:22 +0000 Subject: [PATCH] Only add shared folder prefix if the mail account is a 'mailgroup' git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4278 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_mail-methods-kolab.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/class_mail-methods-kolab.inc b/include/class_mail-methods-kolab.inc index 95ba9e5ee..972314a73 100644 --- a/include/class_mail-methods-kolab.inc +++ b/include/class_mail-methods-kolab.inc @@ -85,7 +85,9 @@ class mailMethodKolab extends mailMethodCyrus /* Kolab shared folder names are like ' shared.uid@server.de ' So overwrite uid to match these folder names. Else we can't read quota settings etc. #FIXME is there a better way to detect if it is 'shared.' or 'shared+' or 'kolab+shared.' or what ever ?*/ - $mailObject->uid = "shared.".$mailObject->uid."@".preg_replace("/^.*@/","",$mailObject->mail); + if(get_class($mailObject) == "mailgroup"){ + $mailObject->uid = "shared.".$mailObject->uid."@".preg_replace("/^.*@/","",$mailObject->mail); + } /* Convert attributes and objectClasses */ foreach ($this->attribute_map as $dest => $source){ -- 2.30.2