From ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Mon, 9 Apr 2007 06:34:41 +0000 Subject: Fix for bug #343195 svn path=/trunk/; revision=33408 --- mail/ChangeLog | 7 +++++++ mail/em-folder-properties.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index 6e3d30ebe9..228bf61c42 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2007-04-09 Hiroyuki Ikezoe + + ** Fixes bug #343195 + + * em-folder-properties.c: (emfp_dialog_got_folder): Get total number + of mails with CAMEL_FOLDER_TOTAL if the folder is junk folder. + 2007-04-06 Matthew Barnes ** Fixes bug #383953 diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c index 4b1aabade3..711b7f3652 100644 --- a/mail/em-folder-properties.c +++ b/mail/em-folder-properties.c @@ -269,6 +269,13 @@ emfp_dialog_got_folder (char *uri, CamelFolder *folder, void *data) prop_data->total += deleted; } + /* + * If the ffolder is junk folder, get total number of mails. + */ + if (store->flags & CAMEL_STORE_VJUNK) { + camel_object_get (folder, NULL, CAMEL_FOLDER_TOTAL, &prop_data->total, NULL); + } + if (store == mail_component_peek_local_store(NULL) && (!strcmp(prop_data->name, "Drafts") || !strcmp(prop_data->name, "Inbox") -- cgit v1.2.3