aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-properties.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-04-09 14:34:41 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-04-09 14:34:41 +0800
commitad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe (patch)
tree44f5c282954809420a281889b1ad1f9a5066d578 /mail/em-folder-properties.c
parent97c166f97eaa511698b74ff2456a5e2b5b44835f (diff)
downloadgsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.tar.gz
gsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.tar.zst
gsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.zip
Fix for bug #343195
svn path=/trunk/; revision=33408
Diffstat (limited to 'mail/em-folder-properties.c')
-rw-r--r--mail/em-folder-properties.c7
1 files changed, 7 insertions, 0 deletions
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")