aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap4/camel-imap4-utils.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-06-11 03:47:46 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-06-11 03:47:46 +0800
commitd46d24e504b30b8b9f7b1045c5a2d252b9daf1d4 (patch)
treeb8ec8d986d2edf5af609cdbe3a74c98be1d8e248 /camel/providers/imap4/camel-imap4-utils.h
parentb1c7fda1bcdb890774764aa8dbf7be1581eadc76 (diff)
downloadgsoc2013-evolution-d46d24e504b30b8b9f7b1045c5a2d252b9daf1d4.tar.gz
gsoc2013-evolution-d46d24e504b30b8b9f7b1045c5a2d252b9daf1d4.tar.zst
gsoc2013-evolution-d46d24e504b30b8b9f7b1045c5a2d252b9daf1d4.zip
If flags does not include FOLDER_INFO_FAST, get the total/unread counts
2004-06-10 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): If flags does not include FOLDER_INFO_FAST, get the total/unread counts for the folder-info. * providers/imap4/camel-imap4-engine.c (engine_parse_status): Removed. (camel_imap4_engine_handle_untagged_1): Don't handle untagged STATUS responses anymore. Let the STATUS requestor handle them instead. * providers/imap4/camel-imap4-utils.c (camel_imap4_untagged_status): New function to parse untagged status events. svn path=/trunk/; revision=26291
Diffstat (limited to 'camel/providers/imap4/camel-imap4-utils.h')
-rw-r--r--camel/providers/imap4/camel-imap4-utils.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/camel/providers/imap4/camel-imap4-utils.h b/camel/providers/imap4/camel-imap4-utils.h
index ace7b4cad0..cfaf6a4dc4 100644
--- a/camel/providers/imap4/camel-imap4-utils.h
+++ b/camel/providers/imap4/camel-imap4-utils.h
@@ -60,6 +60,32 @@ typedef struct {
int camel_imap4_untagged_list (struct _CamelIMAP4Engine *engine, struct _CamelIMAP4Command *ic,
guint32 index, struct _camel_imap4_token_t *token, CamelException *ex);
+
+enum {
+ CAMEL_IMAP4_STATUS_MESSAGES,
+ CAMEL_IMAP4_STATUS_RECENT,
+ CAMEL_IMAP4_STATUS_UIDNEXT,
+ CAMEL_IMAP4_STATUS_UIDVALIDITY,
+ CAMEL_IMAP4_STATUS_UNSEEN,
+ CAMEL_IMAP4_STATUS_UNKNOWN,
+};
+
+typedef struct _camel_imap4_status_attr {
+ struct _camel_imap4_status_attr *next;
+ guint32 type;
+ guint32 value;
+} camel_imap4_status_attr_t;
+
+typedef struct {
+ camel_imap4_status_attr_t *attr_list;
+ char *mailbox;
+} camel_imap4_status_t;
+
+void camel_imap4_status_free (camel_imap4_status_t *status);
+
+int camel_imap4_untagged_status (struct _CamelIMAP4Engine *engine, struct _CamelIMAP4Command *ic,
+ guint32 index, struct _camel_imap4_token_t *token, CamelException *ex);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */