index 3b5045d5f336c239c01e01d0d36dda3380db94d9..95ba9e5ee3e60959ddc3f6f1f8530ed910c249d9 100644 (file)
function getQuota($folder)
{
$result= array('quotaUsage' => '', 'gosaMailQuota' => '');
function getQuota($folder)
{
$result= array('quotaUsage' => '', 'gosaMailQuota' => '');
-
+
error_reporting(0);
/* Load quota settings */
error_reporting(0);
/* Load quota settings */
function fixAttributesOnLoad(&$mailObject)
{
function fixAttributesOnLoad(&$mailObject)
{
+ /* 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);
+
/* Convert attributes and objectClasses */
foreach ($this->attribute_map as $dest => $source){
/* Hickert 11.11.05 : Alternate email addresses were saved, but not displayed again.
/* Convert attributes and objectClasses */
foreach ($this->attribute_map as $dest => $source){
/* Hickert 11.11.05 : Alternate email addresses were saved, but not displayed again.
}
}
}
}
}
}
+
+ /* Save shared folder target */
+ $mailObject->attrs['gosaSharedFolderTarget']= "kolab+shared.".$mailObject->uid;
+
+ /* 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);
/* Assign new acls */
$mailObject->attrs['acl']= array();
/* Assign new acls */
$mailObject->attrs['acl']= array();