If we get an empty name, then mark that as NoSelect. Workaround fix for
author0 <NotZed@Ximian.com>
Tue, 30 Oct 2001 01:34:55 +0000 (01:34 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Tue, 30 Oct 2001 01:34:55 +0000 (01:34 +0000)
2001-10-30    <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c
        (parse_list_response_as_folder_info): If we get an empty name,
        then mark that as NoSelect.  Workaround fix for #13239.

camel/ChangeLog
camel/providers/imap/camel-imap-store.c

index 7e9eb71..fbf8761 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-30    <NotZed@Ximian.com>
+
+       * providers/imap/camel-imap-store.c
+       (parse_list_response_as_folder_info): If we get an empty name,
+       then mark that as NoSelect.  Workaround fix for #13239.
+
 2001-10-29  Dan Winship  <danw@ximian.com>
 
        * providers/imap/camel-imap-folder.c (get_message_simple, 
index ca5af7d..1ef9b6e 100644 (file)
@@ -1387,7 +1387,7 @@ parse_list_response_as_folder_info (CamelImapStore *imap_store,
                        return NULL;
                }
        }
-       
+
        fi = g_new0 (CamelFolderInfo, 1);
        fi->full_name = dir;
        if (sep && name)
@@ -1398,7 +1398,7 @@ parse_list_response_as_folder_info (CamelImapStore *imap_store,
        url = camel_url_new (imap_store->base_url, NULL);
        g_free (url->path);
        url->path = g_strdup_printf ("/%s", dir);
-       if (flags & IMAP_LIST_FLAG_NOSELECT)
+       if (flags & IMAP_LIST_FLAG_NOSELECT || fi->name[0] == 0)
                camel_url_set_param (url, "noselect", "yes");
        fi->url = camel_url_to_string (url, 0);
        camel_url_free (url);