aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-folder.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-14 06:17:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-14 06:17:19 +0800
commita7cdc29a08b9b55c71ced639147e7caf4bd3c608 (patch)
tree86c037c7c806b1c8a412a77179fd613bf8b3e2ac /camel/providers/imap/camel-imap-folder.c
parent085e18d4372f2f04e346000c3d33b82c9d7292a0 (diff)
downloadgsoc2013-evolution-a7cdc29a08b9b55c71ced639147e7caf4bd3c608.tar.gz
gsoc2013-evolution-a7cdc29a08b9b55c71ced639147e7caf4bd3c608.tar.zst
gsoc2013-evolution-a7cdc29a08b9b55c71ced639147e7caf4bd3c608.zip
If a SELECT fails, set imap_store->current_folder to NULL so a SELECT is
2000-07-13 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c: * providers/imap/camel-imap-store.c: If a SELECT fails, set imap_store->current_folder to NULL so a SELECT is forced before any message/folder operations are requested. Also, because some users don't use a namespace, make sure that if the url->path is "/" we don't use it when creating the folder_path. (camel_imap_command[_extended]): Since we allow the passing of a NULL folder which we can use to bypass a forced SELECT, no need to check for the individual commands that don't require a folder to be selected. svn path=/trunk/; revision=4161
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r--camel/providers/imap/camel-imap-folder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 8ba8c27f60..f1e2365dcb 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -267,6 +267,8 @@ imap_init (CamelFolder *folder, CamelStore *parent_store, CamelFolder *parent_fo
"Could not SELECT %s on IMAP server %s: %s.",
folder->full_name, service->url->host,
result ? result : "Unknown error");
+
+ CAMEL_IMAP_STORE (store)->current_folder = NULL;
} else {
/* parse the mode we opened it in and set as current mailbox */
CAMEL_IMAP_STORE (store)->current_folder = folder;