aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-summary.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-summary.c b/camel/providers/imap/camel-imap-summary.c
index ebdf8b9842..9a0a638f96 100644
--- a/camel/providers/imap/camel-imap-summary.c
+++ b/camel/providers/imap/camel-imap-summary.c
@@ -111,10 +111,14 @@ camel_imap_summary_new (const char *filename, guint32 validity)
imap_summary->validity = validity;
return summary;
} else {
- camel_object_unref ((CamelObject *)summary);
- return NULL;
+ /* FIXME: are there error conditions where this won't work? */
+ camel_folder_summary_clear (summary);
+ camel_folder_summary_touch (summary);
+
+ return summary;
}
}
+
if (imap_summary->validity != validity) {
camel_folder_summary_clear (summary);
imap_summary->validity = validity;