From 7d4965af893726cb7fa089c6119a4a2ac24baacc Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Thu, 12 Jan 2006 11:16:40 +0000 Subject: [PATCH] put the created date, in case of missing delivered date 2006-01-12 Parthasarathi Susarla * camel-groupwise-folder.c: (groupwise_populate_details_from_item): (gw_update_cache): (gw_update_summary): put the created date, in case of missing delivered date ** See bug 314841 (gw_update_summary): dont bold trash folder with number of messsages --- camel/providers/groupwise/camel-groupwise-folder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c index 3de2025..77c37f6 100644 --- a/camel/providers/groupwise/camel-groupwise-folder.c +++ b/camel/providers/groupwise/camel-groupwise-folder.c @@ -888,7 +888,7 @@ groupwise_refresh_folder(CamelFolder *folder, CamelException *ex) goto end1; if (!strcmp (folder->full_name, "Trash") || is_proxy) { - status = e_gw_connection_get_items (cnc, container_id, "peek recipient distribution delivered attachments subject status size", NULL, &list); + status = e_gw_connection_get_items (cnc, container_id, "peek recipient distribution created delivered attachments subject status size", NULL, &list); if (status != E_GW_CONNECTION_STATUS_OK) { if (status ==E_GW_CONNECTION_STATUS_OTHER) { g_warning ("Trash full....Empty Trash!!!!\n"); @@ -1282,8 +1282,13 @@ gw_update_summary ( CamelFolder *folder, GList *list,CamelException *ex) status_flags |= CAMEL_MESSAGE_SEEN; if (item_status & E_GW_ITEM_STAT_REPLIED) status_flags |= CAMEL_MESSAGE_ANSWERED; + + if (!strcmp (folder->full_name, "Trash")) + status_flags |= CAMEL_MESSAGE_SEEN; + mi->info.flags |= status_flags; + priority = e_gw_item_get_priority (item); if (priority && !(g_ascii_strcasecmp (priority,"High"))) { mi->info.flags |= CAMEL_MESSAGE_FLAGGED; -- 2.7.4