From af6064b6e1e8b216da9dfa2870203f6dc170636e Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 3 Apr 2008 14:14:20 +0000 Subject: ** Fix for bug #264456 2008-04-02 Milan Crha ** Fix for bug #264456 * mail-component.c: (view_changed): Do not count deleted junk messages when doesn't show deleted messages. svn path=/trunk/; revision=35317 --- mail/ChangeLog | 7 +++++++ mail/mail-component.c | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index de3868d9b9..ad3e53eed3 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2008-04-02 Milan Crha + + ** Fix for bug #264456 + + * mail-component.c: (view_changed): + Do not count deleted junk messages when doesn't show deleted messages. + 2008-04-03 Milan Crha ** Fix for bug #350308 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); -- cgit