From dce4c831e3f05f811072cb908e669d1dc2d1e8e6 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Wed, 13 Mar 2002 23:48:10 +0000 Subject: [PATCH] fix labels not sticking when db is regenerated, patch by naving, r=bienvenu, sr=sspitzer 123110 a=shaver --- mailnews/local/src/nsParseMailbox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mailnews/local/src/nsParseMailbox.cpp b/mailnews/local/src/nsParseMailbox.cpp index 0fbabfb73332..2b242b4f6b9f 100644 --- a/mailnews/local/src/nsParseMailbox.cpp +++ b/mailnews/local/src/nsParseMailbox.cpp @@ -1783,7 +1783,9 @@ NS_IMETHODIMP nsParseNewMailState::ApplyFilterHit(nsIMsgFilter *filter, nsIMsgWi { nsMsgLabelValue filterLabel; filter->GetActionLabel(&filterLabel); - msgHdr->SetLabel(filterLabel); + nsMsgKey msgKey; + msgHdr->GetMessageKey(&msgKey); + m_mailDB->SetLabel(msgKey, filterLabel); } break; default: