mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* Mail: Fix mail unsubscribe does not refresh mail tree anymore
This commit is contained in:
parent
39288e5e89
commit
83948cc750
@ -807,15 +807,13 @@ class mail_ui
|
|||||||
{
|
{
|
||||||
//Change the Mail object to related profileId
|
//Change the Mail object to related profileId
|
||||||
$this->changeProfile($_acc_id);
|
$this->changeProfile($_acc_id);
|
||||||
|
try{
|
||||||
if($this->mail_bo->icServer->subscribeMailbox($_folderName, $_status))
|
$this->mail_bo->icServer->subscribeMailbox($_folderName, $_status);
|
||||||
{
|
|
||||||
$this->mail_bo->resetFolderObjectCache($_acc_id);
|
$this->mail_bo->resetFolderObjectCache($_acc_id);
|
||||||
$this->ajax_reloadNode($_acc_id,!$this->mail_bo->mailPreferences['showAllFoldersInFolderPane']);
|
$this->ajax_reloadNode($_acc_id,!$this->mail_bo->mailPreferences['showAllFoldersInFolderPane']);
|
||||||
}
|
} catch (Horde_Imap_Client_Exception $ex) {
|
||||||
else
|
error_log(__METHOD__.__LINE__."()". lang('Folder %1 %2 failed because of %3!',$_folderName,$_status?'subscribed':'unsubscribed', $ex));
|
||||||
{
|
Framework::message(lang('Folder %1 %2 failed!',$_folderName,$_status));
|
||||||
error_log(__METHOD__.__LINE__."()". lang('Folder %1 %2 failed!',$_folderName,$_status?'subscribed':'unsubscribed'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user