aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-02-27 03:51:15 +0800
committerDan Winship <danw@src.gnome.org>2001-02-27 03:51:15 +0800
commit43f2a52819c061bd0df80388d3877df508590485 (patch)
treefdf4427cbe7817517e675510e0c6218329d28624
parent1aba985def3755dbc5f9c49caee5207aa80e5d94 (diff)
downloadgsoc2013-evolution-43f2a52819c061bd0df80388d3877df508590485.tar.gz
gsoc2013-evolution-43f2a52819c061bd0df80388d3877df508590485.tar.zst
gsoc2013-evolution-43f2a52819c061bd0df80388d3877df508590485.zip
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
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-callbacks.c2
-rw-r--r--mail/mail-view.c2
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