Bug 463849: Delete should mark as read (also on POP and IMAP when offline); r=mnyromyr, sr=neil
authorJens Hatlak <jh@junetz.de>
Fri, 14 Nov 2008 20:24:48 +0100
changeset 1110 0f29f61153ba083211fb8c67a71618890422ff5f
parent 1109 66e6db37bcc5f172b24fd95340bf33a46ec2c482
child 1111 46a840a625b191addaf23e0f2986f45482cd7096
push id841
push usermnyromyr@tprac.de
push dateFri, 14 Nov 2008 19:25:21 +0000
treeherdercomm-central@0f29f61153ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmnyromyr, neil
bugs463849
Bug 463849: Delete should mark as read (also on POP and IMAP when offline); r=mnyromyr, sr=neil
mailnews/base/resources/content/mailWindowOverlay.js
--- a/mailnews/base/resources/content/mailWindowOverlay.js
+++ b/mailnews/base/resources/content/mailWindowOverlay.js
@@ -940,18 +940,17 @@ function MsgGetNextNMessages()
       }
   }
 }
 
 function MsgDeleteMessage(reallyDelete)
 {
     // if the user deletes a message before its mark as read timer goes off, we should mark it as read
     // this ensures that we clear the biff indicator from the system tray when the user deletes the new message
-    if (gMarkViewedMessageAsReadTimer)
-      MarkCurrentMessageAsRead();
+    MarkSelectedMessagesRead(true);
     SetNextMessageAfterDelete();
     if (reallyDelete)
       gDBView.doCommand(nsMsgViewCommandType.deleteNoTrash);
     else
       gDBView.doCommand(nsMsgViewCommandType.deleteMsg);
 }
 
 function MsgCopyMessage(destFolder)