- Fix handling errors of folder deletion (#1486705)

release-0.6
alecpl 15 years ago
parent 98ef63c106
commit c435173eb4

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Fix handling errors of folder deletion (#1486705)
- Parse untagged CAPABILITY response for LOGIN command (#1486742) - Parse untagged CAPABILITY response for LOGIN command (#1486742)
- Renamed all php-cli scripts to use .sh extension - Renamed all php-cli scripts to use .sh extension
- Some files from /bin + spellchecking actions moved to the new 'utils' task - Some files from /bin + spellchecking actions moved to the new 'utils' task

@ -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');
} }

Loading…
Cancel
Save