From ae8d1fe9e2e669d947c6198cb0707ef53139511b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 15 Mar 2004 19:33:17 +0000 Subject: If the initial SELECT fails and CREATE is specified, clear the exception 2004-03-15 Jeffrey Stedfast * providers/imap/camel-imap-store.c (get_folder_online): If the initial SELECT fails and CREATE is specified, clear the exception before attempting to CREATE, this way we don't have an exception set even if the CREATE passes. Fixes bug #55607. svn path=/trunk/; revision=25078 --- camel/ChangeLog | 7 +++++++ camel/providers/imap/camel-imap-store.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index bdb3eb53c9..3fd5091eb0 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2004-03-15 Jeffrey Stedfast + + * providers/imap/camel-imap-store.c (get_folder_online): If the + initial SELECT fails and CREATE is specified, clear the exception + before attempting to CREATE, this way we don't have an exception + set even if the CREATE passes. Fixes bug #55607. + 2004-03-16 Not Zed * camel-mime-message.c (camel_mime_message_init): rever previous diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index c0c77e96c7..f5f13d8883 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -1762,7 +1762,9 @@ get_folder_online (CamelStore *store, const char *folder_name, guint32 flags, Ca CAMEL_SERVICE_UNLOCK (imap_store, connect_lock); return NULL; } - + + camel_exception_clear (ex); + if (!flags & CAMEL_STORE_FOLDER_CREATE) { CAMEL_SERVICE_UNLOCK (imap_store, connect_lock); camel_exception_setv (ex, CAMEL_EXCEPTION_STORE_NO_FOLDER, -- cgit v1.2.3