--- evolution-data-server-2.23.6/camel/providers/imap/camel-imap-store.c	2008-08-01 08:34:53.000000000 +0200
+++ evolution-data-server-2.23.6.new/camel/providers/imap/camel-imap-store.c	2008-08-05 18:10:38.000000000 +0200
@@ -2853,9 +2853,11 @@
 	for (i=0;i<camel_store_summary_count((CamelStoreSummary *)imap_store->summary);i++) {
 		CamelStoreInfo *si = camel_store_summary_index((CamelStoreSummary *)imap_store->summary, i);
 
-		if (si == NULL)
+		if (si == NULL || (si->path && si->path[0] == '\0'))
 			continue;
-		
+	       
+		//printf("folder %i\npath : %s\nuri : %s\n",i,(si->path) ? si->path : "NULL POINTER", (si->uri) ? si->uri : "NULL POINTER"); 
+
 		if ((!strcmp(name, camel_imap_store_info_full_name(imap_store->summary, si))
 		     || imap_match_pattern(imap_store->dir_sep, pattern, camel_imap_store_info_full_name(imap_store->summary, si))
 		     || (include_inbox && !g_ascii_strcasecmp (camel_imap_store_info_full_name(imap_store->summary, si), "INBOX")))
