aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-09-20 02:56:26 +0800
committerDan Winship <danw@src.gnome.org>2000-09-20 02:56:26 +0800
commit64b4dc6796efd18570bb8d35332928ee46addc92 (patch)
tree821ea848ea4c8375a3c2acec3c6160b20f7c3363 /camel/providers
parent4e1d332270e5109485c405f4851c5adc90e3eedb (diff)
downloadgsoc2013-evolution-64b4dc6796efd18570bb8d35332928ee46addc92.tar.gz
gsoc2013-evolution-64b4dc6796efd18570bb8d35332928ee46addc92.tar.zst
gsoc2013-evolution-64b4dc6796efd18570bb8d35332928ee46addc92.zip
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
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c7
1 files changed, 6 insertions, 1 deletions
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);