[evolution] Bug 624235 - CamelPOP3Store missing some methods
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 624235 - CamelPOP3Store missing some methods
- Date: Tue, 13 Jul 2010 14:12:50 +0000 (UTC)
commit 9cbd7884b2c831ebfcd51391829b53f1986ab7b3
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Jul 13 10:11:34 2010 -0400
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 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index e9c39d5..ce674f2 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]