aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/imap/camel-imap-folder.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index e49b992228..b114f309e2 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,11 @@
2000-09-19 Dan Winship <danw@helixcode.com>
+ * providers/imap/camel-imap-folder.c
+ (imap_get_subfolder_info_internal): Fix the case where INBOX
+ isn't returned in the folder listing.
+
+2000-09-19 Dan Winship <danw@helixcode.com>
+
* camel-folder.c: (init): Removed
(camel_folder_init, camel_folder_construct): New object init
function and public object constructor to replace the old init
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index c6771cfd4c..66cc567278 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -671,7 +671,12 @@ imap_get_subfolder_info_internal (CamelFolder *folder, CamelException *ex)
}
if (!strcmp (folder->name, namespace) && !found_inbox) {
- g_ptr_array_add (listing, g_strdup ("INBOX"));
+ fi = g_new0 (CamelFolderInfo, 1);
+ fi->full_name = g_strdup ("INBOX");
+ fi->name = g_strdup ("INBOX");
+ /* FIXME: read/unread msg count */
+
+ g_ptr_array_add (listing, fi);
}
g_free (result);