From 64b4dc6796efd18570bb8d35332928ee46addc92 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 19 Sep 2000 18:56:26 +0000 Subject: Fix the case where INBOX isn't returned in the folder listing. * providers/imap/camel-imap-folder.c (imap_get_subfolder_info_internal): Fix the case where INBOX isn't returned in the folder listing. svn path=/trunk/; revision=5505 --- camel/ChangeLog | 6 ++++++ camel/providers/imap/camel-imap-folder.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index e49b992228..b114f309e2 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-09-19 Dan Winship + + * 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 * camel-folder.c: (init): Removed 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); -- cgit