X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_mail-methods-kolab.inc;h=c0606046b0c9094667c53e70d3b0bd4cc58b6d13;hb=cf52f2875e8d24c2985898e38bfe03acf8900e44;hp=0ab22b92f6f4849b6832c74fd8ae594a14a98271;hpb=4dfc2b514b0f02c1762904e97bb07602c60ef7c9;p=gosa.git diff --git a/include/class_mail-methods-kolab.inc b/include/class_mail-methods-kolab.inc index 0ab22b92f..c0606046b 100644 --- a/include/class_mail-methods-kolab.inc +++ b/include/class_mail-methods-kolab.inc @@ -17,7 +17,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -require_once("class_mail-methods-cyrus.inc"); class mailMethodKolab extends mailMethodCyrus { @@ -30,7 +29,7 @@ class mailMethodKolab extends mailMethodCyrus "gosaMailQuota" => "cyrus-userquota", "gosaMailServer" => "kolabHomeServer"); - function mailMethodKolab($config) + function mailMethodKolab(&$config) { $this->config= $config->data['SERVERS']['IMAP']; } @@ -73,7 +72,7 @@ class mailMethodKolab extends mailMethodCyrus return(false); } - error_reporting(E_ALL); + error_reporting(E_ALL | E_STRICT); return ($result); } @@ -101,6 +100,12 @@ class mailMethodKolab extends mailMethodCyrus $mailObject->attrs[$dest]= $mailObject->attrs[$source]; $mailObject->$dest= $mailObject->attrs[$source]; + /* Ensure that cleanup will recognize the ampped attributes too */ + if(isset($mailObject->saved_attributes)){ + $mailObject->saved_attributes[$dest] = $mailObject->attrs[$source]; + $mailObject->saved_attributes[$source] = $mailObject->attrs[$source]; + } + unset ($mailObject->$dest['count']); unset ($mailObject->attrs[$source]); } @@ -204,7 +209,7 @@ class mailMethodKolab extends mailMethodCyrus } /* Save shared folder target */ - $mailObject->attrs['gosaSharedFolderTarget']= "kolab+shared.".$mailObject->uid; + $mailObject->attrs['gosaSharedFolderTarget']= "kolab+shared.".$mailObject->mail; /* 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.