aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-16 16:40:19 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-16 16:40:19 +0800
commit2ce20b6b3be0a4170e81ed7fef840daf9b0d46ed (patch)
treeecffea2dc4818262e67177fe71bae4360b681361
parenteb8729cefab967a133f53409a9a3622e849e6e73 (diff)
downloadgsoc2013-evolution-2ce20b6b3be0a4170e81ed7fef840daf9b0d46ed.tar
gsoc2013-evolution-2ce20b6b3be0a4170e81ed7fef840daf9b0d46ed.tar.gz
gsoc2013-evolution-2ce20b6b3be0a4170e81ed7fef840daf9b0d46ed.tar.bz2
gsoc2013-evolution-2ce20b6b3be0a4170e81ed7fef840daf9b0d46ed.tar.lz
gsoc2013-evolution-2ce20b6b3be0a4170e81ed7fef840daf9b0d46ed.tar.xz
gsoc2013-evolution-2ce20b6b3be0a4170e81ed7fef840daf9b0d46ed.tar.zst
gsoc2013-evolution-2ce20b6b3be0a4170e81ed7fef840daf9b0d46ed.zip
Fix the logic check for working out if we add inbox or not, we do it if we
2002-08-16 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folders): Fix the logic check for working out if we add inbox or not, we do it if we listed the namespace. svn path=/trunk/; revision=17783
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/imap/camel-imap-store.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index e6a42a2da3..9d1def4a1a 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-16 Not Zed <NotZed@Ximian.com>
+
+ * providers/imap/camel-imap-store.c (get_folders): Fix the logic
+ check for working out if we add inbox or not, we do it if we
+ listed the namespace.
+
2002-08-15 Not Zed <NotZed@Ximian.com>
* camel-store.h (CamelFolderInfo): added a flags field, defined
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index d8f62d627a..b311a3288b 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -2014,7 +2014,7 @@ get_folders_online (CamelImapStore *imap_store, const char *pattern,
camel_imap_response_free (imap_store, response);
}
-#if 0
+#if 1
static void
dumpfi(CamelFolderInfo *fi)
{
@@ -2158,7 +2158,7 @@ get_folders(CamelStore *store, const char *top, guint32 flags, CamelException *e
haveinbox = (strcasecmp(fi->full_name, "INBOX")) == 0;
}
- if (!haveinbox && top[0] == 0)
+ if (!haveinbox && top[0] == imap_store->namespace)
get_folders_online(imap_store, "INBOX", folders, FALSE, ex);
for (i=0; i<folders->len; i++)
@@ -2246,6 +2246,8 @@ get_folder_info_online (CamelStore *store, const char *top, guint32 flags, Camel
if (!(flags & CAMEL_STORE_FOLDER_INFO_FAST))
get_folder_counts(imap_store, tree, ex);
+ dumpfi(tree);
+
return tree;
}