[evolution-kolab] KolabMailImapClient: issue a warning if we do not get folder info on create()



commit e822deafb20dd27ff83e4d94b043119184f4f3d3
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Tue Sep 18 15:40:33 2012 +0200

    KolabMailImapClient: issue a warning if we do not get folder info on create()

 src/libekolab/kolab-mail-imap-client.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/libekolab/kolab-mail-imap-client.c b/src/libekolab/kolab-mail-imap-client.c
index d4d2642..f94e83e 100644
--- a/src/libekolab/kolab-mail-imap-client.c
+++ b/src/libekolab/kolab-mail-imap-client.c
@@ -769,6 +769,13 @@ mail_imap_client_store (KolabMailImapClient *self,
 		                                     cancellable,
 		                                     &tmp_err);
 
+		if (fi != NULL) {
+			camel_store_free_folder_info (CAMEL_STORE (priv->store), fi);
+		} else {
+			g_warning ("%s()[%u] Folder creation returned NULL CamelFolderInfo for '%s/%s'",
+			           __func__, __LINE__, path->parent_name, path->folder_name);
+		}
+
 		kolab_util_camel_imap_path_free (path);
 
 		/* restore previously-configured folder creation type */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]