Bug 1167982 - Do charset detection for all text/* attachments in composition, not just text/plain.

Tag #1273
This commit is contained in:
Matt A. Tobin 2019-11-11 00:54:45 -05:00 committed by Roy Tam
commit d60003b8d1

View file

@ -522,7 +522,9 @@ DONE:
nsresult
nsMsgAttachmentHandler::PickCharset()
{
if (!m_charset.IsEmpty() || !m_type.LowerCaseEqualsLiteral(TEXT_PLAIN))
if (!m_charset.IsEmpty() ||
!StringBeginsWith(m_type, NS_LITERAL_CSTRING("text/"),
nsCaseInsensitiveCStringComparator()))
return NS_OK;
nsCOMPtr<nsIFile> tmpFile =