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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 9a41b9d02e..5f215c90d5 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -218,6 +218,9 @@ fetch_mail (GtkWidget *button, gpointer user_data)
gtk_object_unref((GtkObject *)msg);
}
camel_folder_free_uids (sourcefolder, uids);
+ camel_folder_close (sourcefolder, TRUE, ex);
+ if (camel_exception_is_set (ex))
+ mail_exception_dialog ("", ex, fb);
gtk_object_unref((GtkObject *)sourcefolder);
} else {
printf("we can search on this folder, performing search!\n");