[evolution-data-server/gnome-2-30] Decrement ifolder->exists_on_server when handling EXPUNGE/VANISHED
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-30] Decrement ifolder->exists_on_server when handling EXPUNGE/VANISHED
- Date: Mon, 28 Jun 2010 19:36:08 +0000 (UTC)
commit 09ffa57d6e8899543157b01edbbee4b55796bd20
Author: David Woodhouse <David Woodhouse intel com>
Date: Thu Jun 24 12:14:23 2010 +0100
Decrement ifolder->exists_on_server when handling EXPUNGE/VANISHED
We're supposed to keep track of this for ourselves; the server doesn't send
a new EXISTS.
(cherry picked from commit dfb37b30358d4e515a5dba08fd37fcae245152af)
camel/providers/imapx/camel-imapx-server.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index ed814f8..13a451b 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -1136,6 +1136,10 @@ static void
imapx_expunge_uid_from_summary(CamelIMAPXServer *imap, gchar *uid)
{
CamelMessageInfo *mi;
+ CamelIMAPXFolder *ifolder = (CamelIMAPXFolder *)imap->select_folder;
+
+ if (ifolder->exists_on_server)
+ ifolder->exists_on_server--;
if (imap->changes == NULL)
imap->changes = camel_folder_change_info_new();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]