diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-18 07:06:01 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-18 07:06:01 +0800 |
commit | dcd0b593b3e4670cb6e1b9675b4664d842cae7de (patch) | |
tree | 7356d49b199aa346f14ceaa5a4ec6c90e5781a3a /camel/providers/imap | |
parent | 431cf62eb65a6b7e470bde0034b61fa018fe2049 (diff) | |
download | gsoc2013-evolution-dcd0b593b3e4670cb6e1b9675b4664d842cae7de.tar gsoc2013-evolution-dcd0b593b3e4670cb6e1b9675b4664d842cae7de.tar.gz gsoc2013-evolution-dcd0b593b3e4670cb6e1b9675b4664d842cae7de.tar.bz2 gsoc2013-evolution-dcd0b593b3e4670cb6e1b9675b4664d842cae7de.tar.lz gsoc2013-evolution-dcd0b593b3e4670cb6e1b9675b4664d842cae7de.tar.xz gsoc2013-evolution-dcd0b593b3e4670cb6e1b9675b4664d842cae7de.tar.zst gsoc2013-evolution-dcd0b593b3e4670cb6e1b9675b4664d842cae7de.zip |
Don't process the ImapResponse data, we don't want to block forever on
2001-09-17 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-store.c (delete_folder): Don't process
the ImapResponse data, we don't want to block forever on data we
don't care about...
svn path=/trunk/; revision=12918
Diffstat (limited to 'camel/providers/imap')
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index 4dff0f3c62..dcbe2e77c6 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -1009,25 +1009,22 @@ delete_folder (CamelStore *store, const char *folder_name, CamelException *ex) { CamelImapStore *imap_store = CAMEL_IMAP_STORE (store); CamelImapResponse *response; - + if (!camel_disco_store_check_online (CAMEL_DISCO_STORE (store), ex)) return; - + /* make sure this folder isn't currently SELECTed */ - response = camel_imap_command (imap_store, NULL, ex, "SELECT INBOX"); if (response) { - camel_imap_response_free (imap_store, response); - + camel_imap_response_free_without_processing (imap_store, response); + if (imap_store->current_folder) camel_object_unref (CAMEL_OBJECT (imap_store->current_folder)); /* no need to actually create a CamelFolder for INBOX */ imap_store->current_folder = NULL; } else return; - - /* delete the old parent and recreate it */ - + response = camel_imap_command (imap_store, NULL, ex, "DELETE %F", folder_name); if (response) |