From 22464affdad427fdd9640caf8477494d4e970576 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 16 Aug 2012 13:43:22 +0000 Subject: [PATCH] fix for possible cause for unwanted foldercreation within esync --- felamimail/inc/class.felamimail_bo.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/felamimail/inc/class.felamimail_bo.inc.php b/felamimail/inc/class.felamimail_bo.inc.php index 0d82f41ea3..1d7cfa3765 100644 --- a/felamimail/inc/class.felamimail_bo.inc.php +++ b/felamimail/inc/class.felamimail_bo.inc.php @@ -1913,10 +1913,11 @@ class felamimail_bo //error_log(__METHOD__.__LINE__." foldersToCheck:".array2string($foldersToCheck)); //error_log(__METHOD__.__LINE__." foldersToCheck:".array2string( $this->mailPreferences->preferences['sentFolder'])); foreach($foldersToCheck as $personalFolderName) { - $folderName = (!empty($personalPrefix)) ? $folderPrefix.$personalFolderName : $personalFolderName; + $folderName = (!empty($personalPrefix) ? $folderPrefix.$personalFolderName : $personalFolderName); + //error_log(__METHOD__.__LINE__." foldersToCheck: $personalFolderName / $folderName"); if(!is_array($foldersNameSpace['personal']['all']) || !in_array($folderName, $foldersNameSpace['personal']['all'])) { $createfolder = true; - switch($folderName) + switch($personalFolderName) { case 'Drafts': // => Entwürfe if ($this->mailPreferences->preferences['draftFolder'] && $this->mailPreferences->preferences['draftFolder']=='none')