summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 823c454)
raw | patch | inline | side by side (parent: 823c454)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Aug 2008 13:13:05 +0000 (13:13 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Aug 2008 13:13:05 +0000 (13:13 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12214 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-golab.inc | patch | blob | history | |
gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc | patch | blob | history |
diff --git a/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-golab.inc b/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-golab.inc
index 614a20038e7e045e167db7b58267661da870131d..7c656a606aa001ef1eca27897e411b0671ddae8a 100644 (file)
var $gosaMailServer= "";
var $uattrib= "mail";
+ var $folder_prefix = "";
+ var $user_prefix = "user/";
+
+
var $attribute_map= array("gosaMailAlternateAddress" => "alias",
"gosaMailQuota" => "cyrus-userquota",
"gosaMailServer" => "kolabHomeServer");
diff --git a/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc b/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc
index 775244aa6b660d8f56e1e78c728f913730bfb407..1c7db73a4da132ced1acfa589095eac243be5992 100644 (file)
var $gosaMailServer= "";
var $uattrib= "mail";
+ var $folder_prefix = "shared.";
+ var $user_prefix = "user/";
+
var $attribute_map= array("gosaMailAlternateAddress" => "alias",
"gosaMailQuota" => "cyrus-userquota",
"gosaMailServer" => "kolabHomeServer");
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 ?*/
if(get_class($mailObject) == "mailgroup"){
- $mailObject->uid = "shared.".$mailObject->uid."@".preg_replace("/^.*@/","",$mailObject->mail);
+ $mailObject->uid = $this->folder_prefix.$mailObject->uid."@".preg_replace("/^.*@/","",$mailObject->mail);
}
/* Convert attributes and objectClasses */
/* 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);
+ $mailObject->uid = $this->folder_prefix.$mailObject->uid."@".preg_replace("/^.*@/","",$mailObject->mail);
/* Assign new acls */
$mailObject->attrs['acl']= array();
/* 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);
+ $mailObject->uid = $this->folder_prefix.$mailObject->uid."@".preg_replace("/^.*@/","",$mailObject->mail);
}
}