From 43f2a52819c061bd0df80388d3877df508590485 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 26 Feb 2001 19:51:15 +0000 Subject: Mark deleted messages as "seen" as well so they don't count towards the * mail-callbacks.c (delete_msg): Mark deleted messages as "seen" as well so they don't count towards the unread count. * mail-view.c (view_delete_msg): ditto svn path=/trunk/; revision=8392 --- mail/ChangeLog | 7 +++++++ mail/mail-callbacks.c | 2 +- mail/mail-view.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index c1d9990836..4ae064ba3b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2001-02-26 Dan Winship + + * mail-callbacks.c (delete_msg): Mark deleted messages as "seen" + as well so they don't count towards the unread count. + + * mail-view.c (view_delete_msg): ditto + 2001-02-25 Jeffrey Stedfast * component-factory.c (owner_set_cb): Re-add the diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index ca4a484ef3..1cbb3c2783 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1050,7 +1050,7 @@ save_msg (GtkWidget *widget, gpointer user_data) void delete_msg (GtkWidget *button, gpointer user_data) { - flag_messages(FOLDER_BROWSER(user_data), CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED); + flag_messages(FOLDER_BROWSER(user_data), CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_SEEN); } void diff --git a/mail/mail-view.c b/mail/mail-view.c index c923799e83..320ad9510d 100644 --- a/mail/mail-view.c +++ b/mail/mail-view.c @@ -120,7 +120,7 @@ view_delete_msg (GtkWidget *button, gpointer user_data) { mail_view_data *data = (mail_view_data *) user_data; - camel_folder_set_message_flags(data->source, data->uid, CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED); + camel_folder_set_message_flags(data->source, data->uid, CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_SEEN); } static void -- cgit v1.2.3