diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index 409ed65383c..2c6e1ff4e0c 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -2865,11 +2865,6 @@ public function expunge_message($uids, $folder = null, $clear_cache = true) return false; } - if (!$this->conn->data['READ-WRITE']) { - $this->conn->setError(rcube_imap_generic::ERROR_READONLY, "Folder is read-only"); - return false; - } - // CLOSE(+SELECT) should be faster than EXPUNGE if (empty($uids) || !empty($all_mode)) { $result = $this->conn->close();