aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c7
1 files changed, 7 insertions, 0 deletions
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