зеркало из https://github.com/mozilla/pjs.git
Fix for bug 162842.
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:
Родитель
707498ffb2
Коммит
75523505b3
|
@ -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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче