From bdfd21285070a388b5c75e9f8d4bd37fb80157f6 Mon Sep 17 00:00:00 2001 From: "naving%netscape.com" Date: Wed, 22 Aug 2001 03:31:48 +0000 Subject: [PATCH] 90640 r=bienvenu sr=sspitzer. Make the MarkFlagged filter action work for IMAP --- mailnews/imap/src/nsImapMailFolder.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mailnews/imap/src/nsImapMailFolder.cpp b/mailnews/imap/src/nsImapMailFolder.cpp index 8282ab8645f..c436e2643fb 100644 --- a/mailnews/imap/src/nsImapMailFolder.cpp +++ b/mailnews/imap/src/nsImapMailFolder.cpp @@ -2799,7 +2799,12 @@ NS_IMETHODIMP nsImapMailFolder::ApplyFilterHit(nsIMsgFilter *filter, PRBool *app // MarkFilteredMessageRead(msgHdr); break; case nsMsgFilterAction::MarkFlagged: - msgHdr->MarkFlagged(PR_TRUE); + { + nsMsgKeyArray keysToFlag; + + keysToFlag.Add(msgKey); + StoreImapFlags(kImapMsgFlaggedFlag, PR_TRUE, keysToFlag.GetArray(), keysToFlag.GetSize()); + } break; case nsMsgFilterAction::KillThread: // for ignore and watch, we will need the db