[evolution-patches] 313593, imap namespace problem



Simple fix, using the wrong string to camel_folder_info_build.

-- 
adfa(evolution-2.4:20087): gtkhtml-WARNING **: cannot find icon:
'stock_insert-url' in gnome 
Index: camel/providers/imap/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/imap/ChangeLog,v
retrieving revision 1.29
diff -u -p -r1.29 ChangeLog
--- camel/providers/imap/ChangeLog	18 Aug 2005 04:06:11 -0000	1.29
+++ camel/providers/imap/ChangeLog	18 Aug 2005 04:06:36 -0000
@@ -1,3 +1,10 @@
+2005-08-18  Not Zed  <NotZed Ximian com>
+
+	** See bug #313593.
+
+	* camel-imap-store.c (get_folder_info_offline): get the search
+	name and the top value from the namespace definition.
+
 2005-08-17  Not Zed  <NotZed Ximian com>
 
 	** See bug #313574.
Index: camel/providers/imap/camel-imap-store.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/imap/camel-imap-store.c,v
retrieving revision 1.327
diff -u -p -r1.327 camel-imap-store.c
--- camel/providers/imap/camel-imap-store.c	10 Aug 2005 02:05:15 -0000	1.327
+++ camel/providers/imap/camel-imap-store.c	18 Aug 2005 04:06:37 -0000
@@ -2748,16 +2748,11 @@ get_folder_info_offline (CamelStore *sto
 	if (top == NULL)
 		top = "";
 
-	/* get starting point & strip trailing '/' */
+	/* get starting point */
 	if (top[0] == 0) {
 		if (imap_store->namespace) {
-			top = imap_store->namespace;
-			i = strlen(top)-1;
-			name = g_malloc(i+2);
-			strcpy(name, top);
-			while (i>0 && name[i] == imap_store->dir_sep)
-				name[i--] = 0;
-			top = name;
+			name = g_strdup(imap_store->summary->namespace->full_name);
+			top = imap_store->summary->namespace->path;
 		} else
 			name = g_strdup("");
 	} else {


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