aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 43c83f78e4..5f6dd7f2e2 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -114,7 +114,7 @@ filter_folder_filter(struct _mail_msg *mm)
camel_folder_free_uids (folder, folder_uids);
/* sync and expunge */
- camel_folder_sync (folder, TRUE, &mm->ex);
+ camel_folder_sync (folder, TRUE, camel_exception_is_set (&mm->ex) ? NULL : &mm->ex);
camel_folder_thaw (folder);
if (m->destination)