[PATCH 08/18] Correctly change the unread and total message numbers after a status_poke
- From: Rob Taylor <rob taylor codethink co uk>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: [PATCH 08/18] Correctly change the unread and total message numbers after a status_poke
- Date: Fri, 29 Aug 2008 17:43:36 +0100
Correctly change the unread and total message numbers after a status_poke.
---
.../camel/providers/imap/camel-imap-store.c | 3 +--
libtinymail-camel/tny-camel-folder.c | 4 ++++
2 files changed, 5 insertions(+), 2 deletions(-)
--
Rob Taylor, Codethink Ltd. - http://codethink.co.uk
diff --git a/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c b/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
index 48a4fbc..96d59e9 100644
--- a/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
+++ b/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
@@ -2611,8 +2611,7 @@ imap_get_folder_status (CamelStore *store, const char *folder_name, int *unseen,
if (!g_ascii_strcasecmp (item->name, "MESSAGES"))
*messages = item->value;
if (!g_ascii_strcasecmp (item->name, "UNSEEN")) {
- if (munread_count == -1)
- *unseen = item->value;
+ *unseen = item->value;
}
if (!g_ascii_strcasecmp (item->name, "UIDNEXT"))
*uidnext = item->value;
diff --git a/libtinymail-camel/tny-camel-folder.c b/libtinymail-camel/tny-camel-folder.c
index 17257f7..a0c8a05 100644
--- a/libtinymail-camel/tny-camel-folder.c
+++ b/libtinymail-camel/tny-camel-folder.c
@@ -6004,6 +6004,10 @@ tny_camel_folder_poke_status_thread (gpointer user_data)
} else {
info->unread = newurlen;
info->total = newlen;
+
+ priv->unread_length = newurlen;
+ priv->cached_length = newlen;
+ update_iter_counts (priv);
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]