Aleksander Machniak
2015-07-31 6c7be218f762c79d0fd776bee852924c6023d2ce
Revert create_folder() behaviour change where the method didn't fail if folder already existed.

This should not be the default behaviour. It could likely
become an optional functionality, however we should keep the method simple.
1 files modified
10 ■■■■■ changed files
program/lib/Roundcube/rcube_imap.php 10 ●●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_imap.php
@@ -3111,16 +3111,6 @@
        $result = $this->conn->createFolder($folder, $type ? array("\\" . ucfirst($type)) : null);
        // it's quite often situation that we're trying to create and subscribe
        // a folder that already exist, but is unsubscribed
        if (!$result) {
            if ($this->get_response_code() == rcube_storage::ALREADYEXISTS
                || preg_match('/already exists/i', $this->get_error_str())
            ) {
                $result = true;
            }
        }
        // try to subscribe it
        if ($result) {
            // clear cache