When we parse a message, we emitt the main message headers as well the headers
of embedded messages. We must call nsIMsgMailNewsUrl::SetMimeHeaders only for
the main headers.
R=sspitzer, SR=bienvenu
This commit is contained in:
ducarroz%netscape.com 2002-11-06 02:25:00 +00:00
Родитель 707498ffb2
Коммит 75523505b3
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -626,6 +626,8 @@ NS_IMETHODIMP
nsMimeBaseEmitter::AddAllHeaders(const char *allheaders,
const PRInt32 allheadersize)
{
if (mDocHeader) //We want to set only the main headers of a message, not the potentially embedded one
{
nsresult rv;
nsCOMPtr<nsIMsgMailNewsUrl> msgurl (do_QueryInterface(mURL));
if (msgurl)
@ -635,7 +637,8 @@ nsMimeBaseEmitter::AddAllHeaders(const char *allheaders,
mimeHeaders->Initialize(allheaders, allheadersize);
msgurl->SetMimeHeaders(mimeHeaders);
}
return NS_OK;
}
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////