diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 2 | ||||
-rw-r--r-- | mail/mail-view.c | 2 |
3 files changed, 9 insertions, 2 deletions
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 <danw@ximian.com> + + * 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 <fejj@ximian.com> * 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 |