aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index d218c9ed3a..848bef204d 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -3951,6 +3951,16 @@ on_click (ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event, Mess
uid = camel_message_info_uid (info);
camel_folder_set_message_flags (list->folder, uid, flag, ~flags);
+ /* Notify the folder tree model that the user has marked a message
+ * as unread so it doesn't mistake the event as new mail arriving. */
+ if (flag == CAMEL_MESSAGE_SEEN) {
+ EMFolderTreeModel *model;
+
+ model = em_folder_tree_model_get_default ();
+ em_folder_tree_model_user_marked_unread (
+ model, list->folder_uri, 1);
+ }
+
if (flag == CAMEL_MESSAGE_SEEN && list->seen_id) {
g_source_remove (list->seen_id);
list->seen_id = 0;