aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.h
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/camel-store.h
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/camel-store.h')
-rw-r--r--camel/camel-store.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/camel/camel-store.h b/camel/camel-store.h
index 3d8e10af8c..8aaa820d64 100644
--- a/camel/camel-store.h
+++ b/camel/camel-store.h
@@ -51,8 +51,18 @@ typedef struct _CamelFolderInfo {
char *full_name;
char *path;
int unread_message_count;
+ guint32 flags;
} CamelFolderInfo;
+/* Note: these are abstractions (duh), its upto the provider to make them make sense */
+
+/* a folder which can't contain messages */
+#define CAMEL_FOLDER_NOSELECT (1<<0)
+/* a folder which cannot have children */
+#define CAMEL_FOLDER_NOINFERIORS (1<<1)
+/* a folder which has children (not yet fully implemented) */
+#define CAMEL_FOLDER_CHILDREN (1<<2)
+
/* Structure of rename event's event_data */
typedef struct _CamelRenameInfo {
char *old_base;