From e6595e63b1f5023af79538c79d2c96cdace0cc60 Mon Sep 17 00:00:00 2001 From: Sankar P Date: Sat, 22 Apr 2006 06:25:03 +0000 Subject: No need to get the unread count for Sent Items folder. All will be read by 2006-04-22 Sankar P * 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. --- camel/providers/groupwise/ChangeLog | 6 ++++++ camel/providers/groupwise/camel-groupwise-store.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'camel') 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 + + * 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 ** 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); } -- cgit v1.2.1