aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index 34fcd26dc3..3a1bfc39f4 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -542,7 +542,12 @@ view_changed(EMFolderView *emfv, EComponentView *component_view)
if (((CamelVTrashFolder *)emfv->folder)->type == CAMEL_VTRASH_FOLDER_TRASH) {
g_string_append_printf(tmp, ngettext ("%d deleted", "%d deleted", deleted), deleted);
} else {
- g_string_append_printf(tmp, ngettext ("%d junk", "%d junk", junked), junked);
+ guint32 num = junked_not_deleted;
+
+ if (!emfv->hide_deleted)
+ num = junked;
+
+ g_string_append_printf (tmp, ngettext ("%d junk", "%d junk", num), num);
}
} else if (em_utils_folder_is_drafts(emfv->folder, emfv->folder_uri)) {
g_string_append_printf(tmp, ngettext ("%d draft", "%d drafts", visible), visible);