diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/folder-browser.c | 4 | ||||
-rw-r--r-- | mail/mail-folder-cache.c | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index dd878dc2d1..9020f531d7 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,11 @@ 2001-10-04 <NotZed@Ximian.com> + * folder-browser.c (update_status_bar): Show "nn sent" as total in + sent folder, rather than just 'total'. + + * mail-folder-cache.c (update_1folder): Also show total message + count for sent_folder. + * folder-browser-ui.c (folder_browser_setup_property_menu): Do a better job of setting up the name. Also de-sensitise when we can't configure the folder. diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 43363f4930..9299b2fbb9 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -723,7 +723,7 @@ update_status_bar(FolderBrowser *fb) CORBA_Environment ev; int tmp; GString *work; - extern CamelFolder *outbox_folder; + extern CamelFolder *outbox_folder, *sent_folder; if (fb->folder == NULL || fb->message_list == NULL @@ -764,6 +764,8 @@ update_status_bar(FolderBrowser *fb) g_string_append(work, _(", ")); if (fb->folder == outbox_folder) g_string_sprintfa(work, _("%d unsent"), tmp); + else if (fb->folder == sent_folder) + g_string_sprintfa(work, _("%d sent"), tmp); else g_string_sprintfa(work, _("%d total"), tmp); diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index c99637cb09..2c3474c817 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -105,14 +105,14 @@ update_1folder(struct _folder_info *mfi, CamelFolderInfo *info) CamelFolder *folder; int unread = -1; CORBA_Environment ev; - extern CamelFolder *outbox_folder; + extern CamelFolder *outbox_folder, *sent_folder; si = mfi->store_info; LOCK(info_lock); folder = mfi->folder; if (folder) { - if (CAMEL_IS_VTRASH_FOLDER (folder) || folder == outbox_folder) { + if (CAMEL_IS_VTRASH_FOLDER (folder) || folder == outbox_folder || folder == sent_folder) { unread = camel_folder_get_message_count(folder); } else { if (info) |