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
Родитель 6c20b3710d
Коммит 40726212fa
2 изменённых файлов: 2 добавлений и 6 удалений

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

@ -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;
}

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

@ -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))
{