From 6abd6e01b3f220a127c780ffdf2ea9a80f028238 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 22 Sep 2003 18:48:34 +0000 Subject: Added "offline_sync" option, which lets you synchronise all mail to local 2003-09-22 Not Zed * providers/imap/camel-imap-provider.c: Added "offline_sync" option, which lets you synchronise all mail to local storage automagically. * camel-disco-folder.c (cdf_folder_changed): hook onto the folder changed single, for all new messages, check that they are online using another thread, if the offline_sync option has been enabled for this store. 2003-09-21 Not Zed * camel-session.c (session_thread_destroy): call proper entry point for freeing the message. 2003-09-18 Not Zed * camel-folder.c (filter_filter): register the filtering process for progress, and do progress of the filtering process. 2003-09-17 Not Zed * camel.c (camel_init): init camel operation. * camel-operation.c (camel_operation_reset): removed, not used, not worth it. (camel_operation_mute): new method to stop all status updates permanently. (*): Changed to use thread specific data and a list rather than a hashtable. (cancel_thread): removed. (camel_operation_register): return the previously registered op. svn path=/trunk/; revision=22648 --- camel/camel-session.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'camel/camel-session.h') diff --git a/camel/camel-session.h b/camel/camel-session.h index 8dbdfb9d3f..b9416ddc8d 100644 --- a/camel/camel-session.h +++ b/camel/camel-session.h @@ -110,6 +110,7 @@ typedef struct { void (*thread_msg_free)(CamelSession *session, CamelSessionThreadMsg *msg); int (*thread_queue)(CamelSession *session, CamelSessionThreadMsg *msg, int flags); void (*thread_wait)(CamelSession *session, int id); + void (*thread_status)(CamelSession *session, CamelSessionThreadMsg *msg, const char *text, int pc); #endif } CamelSessionClass; @@ -184,8 +185,14 @@ struct _CamelSessionThreadOps { struct _CamelSessionThreadMsg { EMsg msg; - CamelSessionThreadOps *ops; int id; + + CamelException ex; + CamelSessionThreadOps *ops; + struct _CamelOperation *op; + CamelSession *session; + + void *data; /* free for implementation to define, not used by camel, do not use in client code */ /* user fields follow */ }; @@ -193,6 +200,7 @@ void *camel_session_thread_msg_new(CamelSession *session, CamelSessionThreadOps void camel_session_thread_msg_free(CamelSession *session, CamelSessionThreadMsg *msg); int camel_session_thread_queue(CamelSession *session, CamelSessionThreadMsg *msg, int flags); void camel_session_thread_wait(CamelSession *session, int id); + #endif #ifdef __cplusplus -- cgit v1.2.3