From 9cbd7884b2c831ebfcd51391829b53f1986ab7b3 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 13 Jul 2010 10:11:34 -0400 Subject: Bug 624235 - CamelPOP3Store missing some methods CamelPOP3Store's get_folder_info() now sets CAMEL_STORE_ERROR_NO_FOLDER since it has no folder hierarchy to scan. This catches and clears that error so it doesn't reach the user. --- mail/em-folder-tree.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index e9c39d5a0c..ce674f2309 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -193,6 +193,13 @@ folder_tree_get_folder_info__exec (struct _EMFolderTreeGetFolderInfo *m) m->fi = camel_store_get_folder_info ( m->store, m->top, flags, &m->base.error); + + /* XXX POP3 stores always return an error because they have + * no folder hierarchy to scan. Clear that error so the + * user doesn't see it. */ + if (g_error_matches (m->base.error, + CAMEL_STORE_ERROR, CAMEL_STORE_ERROR_NO_FOLDER)) + g_clear_error (&m->base.error); } static void -- cgit