diff options
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 99d7444c94..08a13954e4 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1268,7 +1268,15 @@ mark_as_seen (BonoboUIComponent *uih, void *user_data, const char *path) void mark_as_unseen (BonoboUIComponent *uih, void *user_data, const char *path) { - flag_messages (FOLDER_BROWSER (user_data), CAMEL_MESSAGE_SEEN, 0); + FolderBrowser *fb = FOLDER_BROWSER (user_data); + + /* Remove the automatic mark-as-read timer first */ + if (fb->seen_id) { + gtk_timeout_remove (fb->seen_id); + fb->seen_id = 0; + } + + flag_messages (fb, CAMEL_MESSAGE_SEEN, 0); } void |