From dd2465b3179e03b4a0f7cde29616898b23948f60 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 25 Oct 2013 14:17:20 +0000 Subject: [PATCH] fix a problem regarding the status fetch for noselect mailboxes --- mail/inc/class.mail_bo.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/inc/class.mail_bo.inc.php b/mail/inc/class.mail_bo.inc.php index 14354908c8..87b394dfe1 100644 --- a/mail/inc/class.mail_bo.inc.php +++ b/mail/inc/class.mail_bo.inc.php @@ -1801,7 +1801,7 @@ class mail_bo { $folderName = $this->_encodeFolderName($_folderName); - $this->icServer->unsubscribeMailbox($folderName); + $this->icServer->subscribeMailbox($folderName,false); $rv = $this->icServer->deleteMailbox($folderName); if ( PEAR::isError($rv) ) { if (self::$debug) error_log(__METHOD__." failed for $folderName with error: ".print_r($rv->message,true)); @@ -1821,7 +1821,7 @@ class mail_bo return false; } } else { - $rv = $this->icServer->unsubscribeMailbox($_folderName); + $rv = $this->icServer->subscribeMailbox($_folderName,false); if ( PEAR::isError($rv)) { error_log(__METHOD__."::".($_status?"":"un")."subscribe:".$_folderName." failed:".$rv->message); return false;