|
|
@ -2764,7 +2764,7 @@ class rcube_imap
|
|
|
|
|
|
|
|
|
|
|
|
// send delete command to server
|
|
|
|
// send delete command to server
|
|
|
|
$result = $this->conn->deleteFolder($mailbox);
|
|
|
|
$result = $this->conn->deleteFolder($mailbox);
|
|
|
|
if ($result >= 0) {
|
|
|
|
if ($result) {
|
|
|
|
$deleted = true;
|
|
|
|
$deleted = true;
|
|
|
|
$this->clear_message_cache($mailbox.'.msg');
|
|
|
|
$this->clear_message_cache($mailbox.'.msg');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2773,7 +2773,7 @@ class rcube_imap
|
|
|
|
if ($c_mbox != 'INBOX') {
|
|
|
|
if ($c_mbox != 'INBOX') {
|
|
|
|
$this->conn->unsubscribe($c_mbox);
|
|
|
|
$this->conn->unsubscribe($c_mbox);
|
|
|
|
$result = $this->conn->deleteFolder($c_mbox);
|
|
|
|
$result = $this->conn->deleteFolder($c_mbox);
|
|
|
|
if ($result >= 0) {
|
|
|
|
if ($result) {
|
|
|
|
$deleted = true;
|
|
|
|
$deleted = true;
|
|
|
|
$this->clear_message_cache($c_mbox.'.msg');
|
|
|
|
$this->clear_message_cache($c_mbox.'.msg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|