summaryrefslogtreecommitdiff
path: root/camel
diff options
context:
space:
mode:
authorSankar P <psankar@novell.com>2006-04-22 06:25:03 +0000
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2006-04-22 06:25:03 +0000
commite6595e63b1f5023af79538c79d2c96cdace0cc60 (patch)
treed5afb09637905eb79f61dc26fe0a4fa73832f5f3 /camel
parent2c8b955fafea052c358dd12e6786952afd14f58e (diff)
downloadevolution-data-server-e6595e63b1f5023af79538c79d2c96cdace0cc60.tar.gz
No need to get the unread count for Sent Items folder. All will be read by
2006-04-22 Sankar P <psankar@novell.com> * camel-groupwise-store.c: (convert_to_folder_info): No need to get the unread count for Sent Items folder. All will be read by default.
Diffstat (limited to 'camel')
-rw-r--r--camel/providers/groupwise/ChangeLog6
-rw-r--r--camel/providers/groupwise/camel-groupwise-store.c8
2 files changed, 11 insertions, 3 deletions
diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog
index e842d4e6c..f85043b8e 100644
--- a/camel/providers/groupwise/ChangeLog
+++ b/camel/providers/groupwise/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-22 Sankar P <psankar@novell.com>
+
+ * camel-groupwise-store.c: (convert_to_folder_info):
+ No need to get the unread count for Sent Items folder.
+ All will be read by default.
+
2006-04-20 Parthasarathi Susarla <sparthasarathi@novell.com>
** See bug 167640 on bnc
diff --git a/camel/providers/groupwise/camel-groupwise-store.c b/camel/providers/groupwise/camel-groupwise-store.c
index a9035f609..fc92df3a0 100644
--- a/camel/providers/groupwise/camel-groupwise-store.c
+++ b/camel/providers/groupwise/camel-groupwise-store.c
@@ -882,10 +882,12 @@ convert_to_folder_info (CamelGroupwiseStore *store, EGwContainer *container, con
fi->total = -1;
fi->unread = -1;
} else if (type == E_GW_CONTAINER_TYPE_TRASH) {*/
- if (type == E_GW_CONTAINER_TYPE_TRASH) {
+
+ if (type == E_GW_CONTAINER_TYPE_TRASH || type == E_GW_CONTAINER_TYPE_SENT) {
fi->total = e_gw_container_get_total_count (container);
- fi->unread = 0;
- }else {
+ fi->unread = 0;
+ /* Done with a belief that user wont mark something as unread in Trash and Sent Items */
+ } else {
fi->total = e_gw_container_get_total_count (container);
fi->unread = e_gw_container_get_unread_count (container);
}