mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
fix a problem regarding the status fetch for noselect mailboxes
This commit is contained in:
parent
628806c289
commit
dd2465b317
@ -1801,7 +1801,7 @@ class mail_bo
|
|||||||
{
|
{
|
||||||
$folderName = $this->_encodeFolderName($_folderName);
|
$folderName = $this->_encodeFolderName($_folderName);
|
||||||
|
|
||||||
$this->icServer->unsubscribeMailbox($folderName);
|
$this->icServer->subscribeMailbox($folderName,false);
|
||||||
$rv = $this->icServer->deleteMailbox($folderName);
|
$rv = $this->icServer->deleteMailbox($folderName);
|
||||||
if ( PEAR::isError($rv) ) {
|
if ( PEAR::isError($rv) ) {
|
||||||
if (self::$debug) error_log(__METHOD__." failed for $folderName with error: ".print_r($rv->message,true));
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$rv = $this->icServer->unsubscribeMailbox($_folderName);
|
$rv = $this->icServer->subscribeMailbox($_folderName,false);
|
||||||
if ( PEAR::isError($rv)) {
|
if ( PEAR::isError($rv)) {
|
||||||
error_log(__METHOD__."::".($_status?"":"un")."subscribe:".$_folderName." failed:".$rv->message);
|
error_log(__METHOD__."::".($_status?"":"un")."subscribe:".$_folderName." failed:".$rv->message);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user