Bug #75866 --> Mark a message as read in JS instead of once for each mail protocol to simplify code.

Hookup the JS function to a timer to allow users to only mark messages as read after they have
been viewed in the preview pane for a configurable number of seconds.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2004-01-09 07:46:39 +00:00
Родитель dbfa473488
Коммит 403da9f1a9
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -3783,9 +3783,7 @@ nsImapMailFolder::NormalEndMsgWriteStream(nsMsgKey uidOfMessage,
if (m_offlineHeader)
EndNewOfflineMessage();
nsCOMPtr<nsIMsgDBHdr> msgHdr;
m_curMsgUid = uidOfMessage;
res = GetMessageHeader(m_curMsgUid, getter_AddRefs(msgHdr));
if (commit && mDatabase)
mDatabase->Commit(nsMsgDBCommitType::kLargeCommit);