aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-09-23 02:48:34 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-09-23 02:48:34 +0800
commit6abd6e01b3f220a127c780ffdf2ea9a80f028238 (patch)
treece0575d5ed607aaf29739724859318649cf8860c /camel/camel-folder.c
parent5d47e3740be4786532d412529a1d53f32ef4faf5 (diff)
downloadgsoc2013-evolution-6abd6e01b3f220a127c780ffdf2ea9a80f028238.tar
gsoc2013-evolution-6abd6e01b3f220a127c780ffdf2ea9a80f028238.tar.gz
gsoc2013-evolution-6abd6e01b3f220a127c780ffdf2ea9a80f028238.tar.bz2
gsoc2013-evolution-6abd6e01b3f220a127c780ffdf2ea9a80f028238.tar.lz
gsoc2013-evolution-6abd6e01b3f220a127c780ffdf2ea9a80f028238.tar.xz
gsoc2013-evolution-6abd6e01b3f220a127c780ffdf2ea9a80f028238.tar.zst
gsoc2013-evolution-6abd6e01b3f220a127c780ffdf2ea9a80f028238.zip
Added "offline_sync" option, which lets you synchronise all mail to local
2003-09-22 Not Zed <NotZed@Ximian.com> * 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 <NotZed@Ximian.com> * camel-session.c (session_thread_destroy): call proper entry point for freeing the message. 2003-09-18 Not Zed <NotZed@Ximian.com> * camel-folder.c (filter_filter): register the filtering process for progress, and do progress of the filtering process. 2003-09-17 Not Zed <NotZed@Ximian.com> * 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
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index 00106ca86a..79b7ecaf62 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -1568,7 +1568,7 @@ filter_filter(CamelSession *session, CamelSessionThreadMsg *msg)
char *source_url;
CamelException ex;
- /* FIXME: progress? (old code didn't have useful progress either) */
+ camel_operation_start(NULL, _("Filtering new message(s)"));
source_url = camel_service_get_url((CamelService *)m->folder->parent_store);
uri = camel_url_new(source_url, NULL);
@@ -1585,6 +1585,9 @@ filter_filter(CamelSession *session, CamelSessionThreadMsg *msg)
for (i=0;status == 0 && i<m->recents->len;i++) {
char *uid = m->recents->pdata[i];
+ int pc = 100 * i / m->recents->len;
+
+ camel_operation_progress(NULL, pc);
info = camel_folder_get_message_info(m->folder, uid);
if (info == NULL) {
@@ -1603,6 +1606,8 @@ filter_filter(CamelSession *session, CamelSessionThreadMsg *msg)
camel_exception_xfer(&m->ex, &ex);
g_free(source_url);
+
+ camel_operation_end(NULL);
}
static void