diff options
author | Dan Winship <danw@src.gnome.org> | 2000-10-30 04:39:18 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-10-30 04:39:18 +0800 |
commit | b23d7cd857879ca0d4b8c2fa0315da75b0a77e09 (patch) | |
tree | e0b772749611e8205653292b0ef9356a8fbdbf0c /mail/mail-ops.c | |
parent | 65f9e9cd94a701aee2ac89cf38009fa08157e887 (diff) | |
download | gsoc2013-evolution-b23d7cd857879ca0d4b8c2fa0315da75b0a77e09.tar.gz gsoc2013-evolution-b23d7cd857879ca0d4b8c2fa0315da75b0a77e09.tar.zst gsoc2013-evolution-b23d7cd857879ca0d4b8c2fa0315da75b0a77e09.zip |
Sync the folder before refreshing so we don't lose flag settings.
* mail-ops.c (do_fetch_mail): Sync the folder before refreshing so
we don't lose flag settings.
svn path=/trunk/; revision=6254
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 158a23a953..a6fd33639a 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -136,7 +136,9 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex) if (!strncmp (input->source_url, "imap:", 5)) { folder = mail_tool_get_inbox (input->source_url, ex); if (folder) { - camel_folder_refresh_info (folder, ex); + camel_folder_sync (folder, FALSE, ex); + if (!camel_exception_is_set (ex)) + camel_folder_refresh_info (folder, ex); camel_object_unref (CAMEL_OBJECT (folder)); } |