aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index ca3d208ded..1a3ff0efe3 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1604,14 +1604,22 @@ cleanup_display_message (gpointer in_data, gpointer op_data,
if (data->msg == NULL) {
mail_display_set_message (md, NULL);
} else {
+ gint timeout = mail_config_mark_as_seen_timeout ();
+
if (input->ml->seen_id)
gtk_timeout_remove (input->ml->seen_id);
mail_display_set_message (md, CAMEL_MEDIUM (data->msg));
camel_object_unref (CAMEL_OBJECT (data->msg));
- input->ml->seen_id =
- gtk_timeout_add (1500, input->timeout, input->ml);
+ if (timeout > 0) {
+ input->ml->seen_id = gtk_timeout_add (timeout,
+ input->timeout,
+ input->ml);
+ } else {
+ input->ml->seen_id = 0;
+ input->timeout (input->ml);
+ }
}
if (input->uid)