Index: camel/camel-store.c
===================================================================
--- camel/camel-store.c	(revision 8404)
+++ camel/camel-store.c	(working copy)
@@ -251,7 +251,7 @@ camel_store_get_folder (CamelStore *stor
 			camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
 					      _("Cannot create folder `%s': folder exists"),
 					      folder_name);
-
+			camel_object_bag_abort (store->folders, folder_name);
 			camel_object_unref (folder);
 			return NULL;
 		}
