aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-07-17 03:23:33 +0800
committerDan Winship <danw@src.gnome.org>2001-07-17 03:23:33 +0800
commit749286686bb9ac20e0466ec89154b86779f58fa7 (patch)
treecb60d26d0f82ebab203cfc3d3266160e5b631806 /camel
parent79d07ca8cad15d7ec6e3d37e261ddc6d401374a8 (diff)
downloadgsoc2013-evolution-749286686bb9ac20e0466ec89154b86779f58fa7.tar
gsoc2013-evolution-749286686bb9ac20e0466ec89154b86779f58fa7.tar.gz
gsoc2013-evolution-749286686bb9ac20e0466ec89154b86779f58fa7.tar.bz2
gsoc2013-evolution-749286686bb9ac20e0466ec89154b86779f58fa7.tar.lz
gsoc2013-evolution-749286686bb9ac20e0466ec89154b86779f58fa7.tar.xz
gsoc2013-evolution-749286686bb9ac20e0466ec89154b86779f58fa7.tar.zst
gsoc2013-evolution-749286686bb9ac20e0466ec89154b86779f58fa7.zip
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
Diffstat (limited to 'camel')
-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);