From e1ed26f4b65882655d3cb935421a55499fd22da6 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Thu, 6 Sep 2001 03:21:29 +0000 Subject: [PATCH] don't mark imap msg read when reading it if it's already read rs=sspitzer 97834 --- mailnews/imap/src/nsImapMailFolder.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mailnews/imap/src/nsImapMailFolder.cpp b/mailnews/imap/src/nsImapMailFolder.cpp index 14bbd1de295e..6862d6591a2e 100644 --- a/mailnews/imap/src/nsImapMailFolder.cpp +++ b/mailnews/imap/src/nsImapMailFolder.cpp @@ -3387,8 +3387,13 @@ nsImapMailFolder::NormalEndMsgWriteStream(nsMsgKey uidOfMessage, PRBool markRead res = GetMessageHeader(m_curMsgUid, getter_AddRefs(msgHdr)); if (NS_SUCCEEDED(res)) { - msgHdr->MarkRead(PR_TRUE); - commit = PR_TRUE; + PRBool isRead; + msgHdr->GetIsRead(&isRead); + if (!isRead) + { + msgHdr->MarkRead(PR_TRUE); + commit = PR_TRUE; + } } }