Excluded types MESSAGE_RFC822 and MESSAGE_NEWS from being encoded as base64 to fix forward inline problem, bug 40745, r=rhp, a=ftang.

This commit is contained in:
nhotta%netscape.com 2000-06-06 23:29:56 +00:00
parent cebff3c5d2
commit caa54650d3
2 changed files with 2 additions and 6 deletions

View File

@ -273,9 +273,7 @@ nsMsgAttachmentHandler::PickEncoding(const char *charset)
(PL_strcasecmp(m_type, TEXT_VCARD) == 0) ||
(PL_strcasecmp(m_type, APPLICATION_DIRECTORY) == 0) || /* text/x-vcard synonym */
(PL_strcasecmp(m_type, TEXT_CSS) == 0) ||
(PL_strcasecmp(m_type, TEXT_JSSS) == 0) ||
(PL_strcasecmp(m_type, MESSAGE_RFC822) == 0) ||
(PL_strcasecmp(m_type, MESSAGE_NEWS) == 0)))
(PL_strcasecmp(m_type, TEXT_JSSS) == 0)))
{
needsB64 = PR_TRUE;
}

View File

@ -816,9 +816,7 @@ mime_generate_attachment_headers (const char *type, const char *encoding,
(PL_strcasecmp(type, TEXT_VCARD) == 0) ||
(PL_strcasecmp(type, APPLICATION_DIRECTORY) == 0) || /* text/x-vcard synonym */
(PL_strcasecmp(type, TEXT_CSS) == 0) ||
(PL_strcasecmp(type, TEXT_JSSS) == 0) ||
(PL_strcasecmp(type, MESSAGE_RFC822) == 0) ||
(PL_strcasecmp(type, MESSAGE_NEWS) == 0)) ||
(PL_strcasecmp(type, TEXT_JSSS) == 0)) ||
(PL_strcasecmp(encoding, ENCODING_BASE64) != 0)) &&
(*charset_label))
{