From: hickert Date: Fri, 13 Jul 2007 09:28:43 +0000 (+0000) Subject: Udpated mail method kolab. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31fa6cbb6f70bade457127c6572f5143d439354e;p=gosa.git Udpated mail method kolab. When attributes were mapped with kolab mailmethod, they ware not updated in saved_attributes, so cleanup skipped them in some cases. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6857 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_mail-methods-kolab.inc b/include/class_mail-methods-kolab.inc index caf7b2bde..b43c10ad1 100644 --- a/include/class_mail-methods-kolab.inc +++ b/include/class_mail-methods-kolab.inc @@ -101,6 +101,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]); }