forked from extern/egroupware
* Mail: Fix empty trash/empty junk actions causes error in some mail servers, e.g. Cyrus.
This commit is contained in:
parent
b6e4931902
commit
d5ac9b90a8
@ -3953,8 +3953,9 @@ class Mail
|
|||||||
$this->flagMessages('delete', $uid, $_folder);
|
$this->flagMessages('delete', $uid, $_folder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// delete the messages finaly
|
$examineMailbox = $this->icServer->examineMailbox($_folder);
|
||||||
$this->icServer->expunge($_folder);
|
// examine the folder and if there are messages then try to delete the messages finaly
|
||||||
|
if (is_array($examineMailbox) && $examineMailbox['MESSAGES'] > 0) $this->icServer->expunge($_folder);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if($oldMailbox != '') {
|
if($oldMailbox != '') {
|
||||||
|
Loading…
Reference in New Issue
Block a user