From 41bac6b5e84df0ced713f83a66dedcc6ed09b3b6 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Tue, 19 Jul 2005 21:13:26 +0000 Subject: [PATCH] part of work for 301084, store msgs in on-the-fly fcc folder as read, like standard fcc folder, sr=mscott, a=benjamin git-svn-id: svn://10.0.0.236/trunk@176273 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/imap/src/nsImapMailFolder.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/mailnews/imap/src/nsImapMailFolder.cpp b/mozilla/mailnews/imap/src/nsImapMailFolder.cpp index fcd93d2a70e..4c71f52ddb1 100644 --- a/mozilla/mailnews/imap/src/nsImapMailFolder.cpp +++ b/mozilla/mailnews/imap/src/nsImapMailFolder.cpp @@ -4629,9 +4629,10 @@ NS_IMETHODIMP nsImapMailFolder::GetCurMoveCopyMessageFlags(nsIImapUrl *runningUr if (label != 0) *aResult |= label << 25; } - // if the message is being added to the Sent or Templates folders, - // add the seen flag so the message gets marked read - else if (mFlags & (MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_TEMPLATES)) + // if we don't have a source header, and it's not the drafts folder, + // then mark the message read, since it must be an append to the + // fcc or templates folder. + else if (! (mFlags & (MSG_FOLDER_FLAG_DRAFTS))) *aResult = MSG_FLAG_READ; } return NS_OK;