diff options
Diffstat (limited to 'mail/em-folder-properties.c')
-rw-r--r-- | mail/em-folder-properties.c | 7 |
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") |