mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug #244457 --> Don't show vCards as external attachments if viewing messages as simple HTML
or plain text.
This commit is contained in:
parent
36e289f4a9
commit
e39d02b101
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user