From 319c71b6cf5cf4f756875ecff7bd3b5ab8aad355 Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Tue, 20 Dec 2005 06:34:12 +0000 Subject: ** See bug 234008 2005-12-20 Parthasarathi Susarla ** See bug 234008 * em-folder-tree-model.c: * mail-folder-cache.c: Make sure that the Draft folder highlights the number of messages in it svn path=/trunk/; revision=30891 --- mail/mail-folder-cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/mail-folder-cache.c') diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index 6f4fda244e..ce41ed69fd 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -352,10 +352,12 @@ update_1folder(struct _folder_info *mfi, int new, CamelFolderInfo *info) d(printf("update 1 folder '%s'\n", folder->full_name)); if ((count_trash && (CAMEL_IS_VTRASH_FOLDER (folder))) || folder == mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_OUTBOX) + || folder == mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_DRAFTS) || (count_sent && folder == mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_SENT))) { d(printf(" total count\n")); unread = camel_folder_get_message_count (folder); - if (folder == mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_OUTBOX)) { + if (folder == mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_OUTBOX) + || folder == mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_DRAFTS)) { if ((deleted = camel_folder_get_deleted_message_count (folder)) > 0) unread -= deleted; } -- cgit