From 2846dab0f472cf39bd2326720ba753d6580e6603 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 13 Jul 2007 09:29:46 +0000 Subject: [PATCH] Udpated kolab mail method. To updated mapped attributes in saved_attributes array too git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6858 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_mail-methods-kolab.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/class_mail-methods-kolab.inc b/include/class_mail-methods-kolab.inc index caf7b2bde..e37b80ce3 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]); } -- 2.30.2