aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-07-13 22:11:34 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-13 22:11:34 +0800
commit9cbd7884b2c831ebfcd51391829b53f1986ab7b3 (patch)
treee88d3108db460763cf1c114c61a1b5364b0f2278 /mail/em-folder-tree.c
parentf9ac993fdabacecd795037516244840c2142ec13 (diff)
downloadgsoc2013-evolution-9cbd7884b2c831ebfcd51391829b53f1986ab7b3.tar
gsoc2013-evolution-9cbd7884b2c831ebfcd51391829b53f1986ab7b3.tar.gz
gsoc2013-evolution-9cbd7884b2c831ebfcd51391829b53f1986ab7b3.tar.bz2
gsoc2013-evolution-9cbd7884b2c831ebfcd51391829b53f1986ab7b3.tar.lz
gsoc2013-evolution-9cbd7884b2c831ebfcd51391829b53f1986ab7b3.tar.xz
gsoc2013-evolution-9cbd7884b2c831ebfcd51391829b53f1986ab7b3.tar.zst
gsoc2013-evolution-9cbd7884b2c831ebfcd51391829b53f1986ab7b3.zip
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.
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