From e3c993cfc43a8e4190a56adbae98ea025d51e29f Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 30 Nov 2016 15:14:05 +0000 Subject: [PATCH] make sure changeFolder (and delete) actions are not cached either in class-var or in cache-object by explizitly calling getFolderObjects reinitializing cache --- mail/inc/class.mail_zpush.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_zpush.inc.php b/mail/inc/class.mail_zpush.inc.php index 26ead728c8..cca13c53b4 100644 --- a/mail/inc/class.mail_zpush.inc.php +++ b/mail/inc/class.mail_zpush.inc.php @@ -1964,7 +1964,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail, } $newHash = $this->rename_folder_hash($account, $old_hash, $newFolderName); $newID = $this->createID($account, $newHash); - + $this->folders = $this->mail->getFolderObjects(true,false,$_alwaysGetDefaultFolders=true,false); ZLog::Write(LOGLEVEL_DEBUG,":{$action}Folder('$id'=>($parentFolder), '$oldid'".($oldid?"=>($oldFolder)":'').", '$displayname' => $newFolderName (ID:$newID))"); return $this->StatFolder($newID); } @@ -1987,6 +1987,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail, ZLog::Write(LOGLEVEL_DEBUG,__METHOD__."( '$id (-> $folder)','$parentid ".($parentid?'(->'.$parentfolder.')':'')."') called!"); $ret = $this->mail->deleteFolder($folder); if ($ret) $newHash = $this->rename_folder_hash($account, $old_hash, "##Dele#edFolder#$folder##"); + $this->folders = $this->mail->getFolderObjects(true,false,$_alwaysGetDefaultFolders=true,false); return $ret; }