camel-imap4 r11 - trunk/imap4
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: camel-imap4 r11 - trunk/imap4
- Date: Mon, 12 May 2008 14:58:29 +0100 (BST)
Author: fejj
Date: Mon May 12 13:58:28 2008
New Revision: 11
URL: http://svn.gnome.org/viewvc/camel-imap4?rev=11&view=rev
Log:
2008-05-12 Jeffrey Stedfast <fejj novell com>
* camel-imap4-summary.c (camel_imap4_summary_flush_updates):
Properly handle empty folders.
Modified:
trunk/imap4/ChangeLog
trunk/imap4/camel-imap4-summary.c
Modified: trunk/imap4/camel-imap4-summary.c
==============================================================================
--- trunk/imap4/camel-imap4-summary.c (original)
+++ trunk/imap4/camel-imap4-summary.c Mon May 12 13:58:28 2008
@@ -1304,6 +1304,7 @@
engine = ((CamelIMAP4Store *) folder->parent_store)->engine;
scount = camel_folder_summary_count (summary);
+ g_assert (scount > 0);
info[0] = camel_folder_summary_index (summary, 0);
if (scount > 1)
@@ -1581,7 +1582,8 @@
summary->flags ^= CAMEL_IMAP4_SUMMARY_HAVE_MLIST;
engine = ((CamelIMAP4Store *) summary->folder->parent_store)->engine;
- scount = camel_folder_summary_count (summary);
+ if ((scount = camel_folder_summary_count (summary)) == 0)
+ imap4_summary->update_flags = FALSE;
if (imap4_summary->uidvalidity_changed) {
/* need to refetch everything */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]