From 6c7be218f762c79d0fd776bee852924c6023d2ce Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 31 Jul 2015 02:35:01 -0400
Subject: [PATCH] Revert create_folder() behaviour change where the method didn't fail if folder already existed.
---
program/lib/Roundcube/rcube_imap.php | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php
index 6725394..63253b8 100644
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/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
--
Gitblit v1.9.1