diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2010-06-24 12:14:23 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-06-28 13:42:58 +0100 |
commit | 09ffa57d6e8899543157b01edbbee4b55796bd20 (patch) | |
tree | a3271e6d98794f0ab5ab64ef506878d95a3be2b6 | |
parent | cb34a2e0361affb5994a9b5b72c8c739e29ceee9 (diff) | |
download | evolution-data-server-09ffa57d6e8899543157b01edbbee4b55796bd20.tar.gz |
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)
-rw-r--r-- | 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 ed814f899..13a451b89 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(); |