aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-15 14:17:09 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-15 14:17:09 +0800
commit7dc4b13d477ea40930d0edf717b04fae4e558232 (patch)
tree89ed2c6ecba0350b79e9f80ed7db1a39b27a958a /camel/providers/imap/camel-imap-utils.c
parent3e208eabe5395ae452b99b5ba9fd27e7128ee1b2 (diff)
downloadgsoc2013-evolution-7dc4b13d477ea40930d0edf717b04fae4e558232.tar.gz
gsoc2013-evolution-7dc4b13d477ea40930d0edf717b04fae4e558232.tar.zst
gsoc2013-evolution-7dc4b13d477ea40930d0edf717b04fae4e558232.zip
added a flags field, defined some flags, currently only used by imap. This
2002-08-15 Not Zed <NotZed@Ximian.com> * camel-store.h (CamelFolderInfo): added a flags field, defined some flags, currently only used by imap. This and below is first step to getting incremental folder tree loading. * providers/imap/camel-imap-store.c (get_subscribed_folders): If the subscribed list is empty, always add inbox. (imap_connect_offline): If the 'storeinfo' namespace isn't the same as our own (if its set), then ignore it, assume we changed settings. Otherwise you can't change the namespace ... (get_folders): allow the env variable CAMEL_IMAP_MAX_DEPTH to override the default maximum recursion depth if 10 levels. (camel_imap_store_readline): Dont depend the log debug on d(x) being defined. (get_folder_info_online): changed to use new functions/names. 2002-08-14 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_subscribed_folders): Removed the by_hand sillyness. Return an array instead. (get_folders): New method to get folders recursively without having to use '*'. Uses '%', and stops if it gets too deep (current max of 10). (get_folder_counts): New method to fill out unread counts on folderinfo tree. (get_subscribed_folders): Fix some failure logic. * providers/imap/camel-imap-utils.[ch]: Changed IMAP_LIST_FLAGS to use the new CamelFolderInfoFlags directly. svn path=/trunk/; revision=17777
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.c')
-rw-r--r--camel/providers/imap/camel-imap-utils.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c
index 0d5d45c30e..4370d890ba 100644
--- a/camel/providers/imap/camel-imap-utils.c
+++ b/camel/providers/imap/camel-imap-utils.c
@@ -315,13 +315,17 @@ imap_parse_list_response (CamelImapStore *store, const char *buf, int *flags, ch
len = strcspn (word, " )");
if (flags) {
if (!g_strncasecmp (word, "\\NoInferiors", len))
- *flags |= IMAP_LIST_FLAG_NOINFERIORS;
+ *flags |= CAMEL_FOLDER_NOINFERIORS;
else if (!g_strncasecmp (word, "\\NoSelect", len))
- *flags |= IMAP_LIST_FLAG_NOSELECT;
+ *flags |= CAMEL_FOLDER_NOSELECT;
else if (!g_strncasecmp (word, "\\Marked", len))
- *flags |= IMAP_LIST_FLAG_MARKED;
+ *flags |= CAMEL_IMAP_FOLDER_MARKED;
else if (!g_strncasecmp (word, "\\Unmarked", len))
- *flags |= IMAP_LIST_FLAG_UNMARKED;
+ *flags |= CAMEL_IMAP_FOLDER_UNMARKED;
+ else if (!g_strncasecmp (word, "\\HasChildren", len))
+ *flags |= CAMEL_FOLDER_CHILDREN;
+ else if (!g_strncasecmp (word, "\\HasNoChildren", len))
+ *flags |= CAMEL_IMAP_FOLDER_NOCHILDREN;
}
word += len;