From 2f1d55bd73336ae433a912c8fd8a19b649306ebc Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 30 Nov 2000 21:15:09 +0000 Subject: Handle the case where the summary failed to load - clear the summary and 2000-11-30 Jeffrey Stedfast * providers/imap/camel-imap-summary.c (camel_imap_summary_new): Handle the case where the summary failed to load - clear the summary and then set the dirty bit so that it is sure to save later. Is this the right fix? svn path=/trunk/; revision=6743 --- camel/providers/imap/camel-imap-summary.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'camel/providers') 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; -- cgit v1.2.3