don't send rtf or vcs files as text/plain, sr=mscott 363764

This commit is contained in:
bienvenu%nventure.com 2006-12-15 16:20:32 +00:00
Родитель 1d394265e5
Коммит 9349f738df
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -2347,6 +2347,11 @@ nsMsgComposeAndSend::AddCompFieldLocalAttachments()
if (!type.Equals("multipart/appledouble")) // can't do apple double on non-macs
#endif
m_attachments[newLoc].m_type = ToNewCString(type);
// rtf and vcs files may look like text to sniffers,
// but they're not human readable.
if (type.IsEmpty() && !fileExt.IsEmpty() &&
(fileExt.LowerCaseEqualsLiteral("rtf") || fileExt.LowerCaseEqualsLiteral("vcs")))
m_attachments[newLoc].m_type = PL_strdup(APPLICATION_OCTET_STREAM);
}
}
}