aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog9
-rw-r--r--camel/providers/imap/camel-imap-command.c7
2 files changed, 16 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 7e8e4f0481..4f598cbb59 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,12 @@
+2001-07-16 Dan Winship <danw@ximian.com>
+
+ * providers/imap/camel-imap-command.c (camel_imap_response_free):
+ Given:
+ * 4 EXISTS
+ * 1 EXPUNGE
+ We have to pass 3, not 4 to camel_imap_folder_changed for the
+ exists count. Fixes ximian bug #2112 (finally!).
+
2001-07-14 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c
index 6f19e579e4..6bca74538d 100644
--- a/camel/providers/imap/camel-imap-command.c
+++ b/camel/providers/imap/camel-imap-command.c
@@ -402,6 +402,13 @@ camel_imap_response_free (CamelImapStore *store, CamelImapResponse *response)
sizeof (int));
}
g_array_append_val (expunged, number);
+
+ /* camel_imap_folder_changed expects
+ * "exists" to be the value after all
+ * expunges.
+ */
+ if (exists)
+ exists--;
}
}
g_free (resp);