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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 3ec54474eb..eeaf6d8b0b 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1501,16 +1501,18 @@ remove_folder_get (struct _mail_msg *mm)
g_free (full_name);
m->removed = !camel_exception_is_set (&mm->ex);
camel_object_unref (CAMEL_OBJECT (store));
-
- /* Remove this folder from the folder cache */
- mail_folder_cache_remove_folder (m->uri);
}
static void
remove_folder_got (struct _mail_msg *mm)
{
struct _remove_folder_msg *m = (struct _remove_folder_msg *)mm;
-
+
+ if (m->removed) {
+ /* Remove this folder from the folder cache */
+ mail_folder_cache_remove_folder (m->uri);
+ }
+
if (m->done)
m->done (m->uri, m->removed, m->data);
}