Bug #244457 --> Don't show vCards as external attachments if viewing messages as simple HTML

or plain text.
This commit is contained in:
scott%scott-macgregor.org 2004-06-02 21:06:03 +00:00
parent 36e289f4a9
commit e39d02b101

View File

@ -391,9 +391,13 @@ var messageHeaderSink = {
// presentation level change....don't show vcards as external attachments in the UI.
// libmime already renders them inline.
if (contentType == "text/x-vcard")
{
var inlineAttachments = pref.getBoolPref("mail.inline_attachments");
if (inlineAttachments && contentType == "text/x-vcard")
var displayHtmlAs = pref.getIntPref("mailnews.display.html_as");
if (inlineAttachments && !displayHtmlAs)
return;
}
currentAttachments.push (new createNewAttachmentInfo(contentType, url, displayName, uri, notDownloaded));
// if we have an attachment, set the MSG_FLAG_ATTACH flag on the hdr