From 749286686bb9ac20e0466ec89154b86779f58fa7 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 16 Jul 2001 19:23:33 +0000 Subject: Given: 4 EXISTS 1 EXPUNGE We have to pass 3, not 4 to * 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!). svn path=/trunk/; revision=11133 --- camel/providers/imap/camel-imap-command.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'camel/providers') 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); -- cgit v1.2.3