From b67d6b02ca832f90e3e1b98bf85f98b68009f25d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 26 May 2008 18:11:49 +0000 Subject: ** Fix for bug #317755 2008-05-26 Milan Crha ** Fix for bug #317755 * mail-send-recv.c: (refresh_folders_exec): * mail-ops.c: (refresh_folder_desc): Also sync with a server when refreshing folder. * evolution-mail.schemas.in: * mail-config.h: (mail_config_get_sync_timeout): * mail-config.c: (mail_config_get_sync_timeout): Use int value of /apps/evolution/mail/sync_interval where is set how often propagate local changes to server. * mail-component.c: (struct _MailComponentPrivate), (impl_dispose), (mc_sync_store_done), (mc_sync_store), (call_mail_sync), (mail_component_init): Upload local changes to server on some interval. * mail-component.c: (impl_quit): Do not quit until we are done with mail sync. svn path=/trunk/; revision=35552 --- mail/mail-ops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 77bb37fa62..432e81539c 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1620,7 +1620,10 @@ refresh_folder_desc (struct _sync_folder_msg *m) static void refresh_folder_exec (struct _sync_folder_msg *m) { - camel_folder_refresh_info(m->folder, &m->base.ex); + camel_folder_sync (m->folder, FALSE, &m->base.ex); + + if (!camel_exception_is_set (&m->base.ex)) + camel_folder_refresh_info(m->folder, &m->base.ex); } /* we just use the sync stuff where we can, since it would be the same */ -- cgit v1.2.3