aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 199a85baa7..7d1db25233 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -829,6 +829,8 @@ refresh_folders_exec (struct _refresh_folders_msg *m)
for (i=0;i<m->folders->len;i++) {
folder = mail_tool_uri_to_folder(m->folders->pdata[i], 0, &ex);
if (folder) {
+ camel_folder_sync (folder, FALSE, &ex);
+ camel_exception_clear(&ex);
camel_folder_refresh_info(folder, &ex);
camel_exception_clear(&ex);
camel_object_unref(folder);