зеркало из https://github.com/mozilla/pjs.git
Bug #258489 --> Outgoing mail imported from Eudora shows raw HTML code
Migrating messages from the eudora sent folder / outbox...eudora doesn't mark html messages as being HTML so we need to sniff the first line of the body looking for a <html> tag.
This commit is contained in:
Родитель
90fa962b8e
Коммит
efabc9722c
|
@ -301,7 +301,7 @@ nsresult nsEudoraMailbox::ImportMailbox( PRUint32 *pBytes, PRBool *pAbort, const
|
|||
// Unfortunately Eudora stores HTML messages in the sent folder
|
||||
// without any content type header at all. If the first line of the message body is <html>
|
||||
// then mark the message as html internally...See Bug #258489
|
||||
if (body.m_pBuffer && body.m_writeOffset > sizeof(kHTMLTag) && (strncmp(body.m_pBuffer, kHTMLTag, sizeof(kHTMLTag)) == 0))
|
||||
if (body.m_pBuffer && (body.m_writeOffset > strlen(kHTMLTag)) && (strncmp(body.m_pBuffer, kHTMLTag, strlen(kHTMLTag)) == 0 ))
|
||||
bodyType = "text/html"; // ignore whatever body type we were given...force html
|
||||
|
||||
compose.SetBody( body.m_pBuffer, body.m_writeOffset - 1, bodyType);
|
||||
|
|
Загрузка…
Ссылка в новой задаче