Bug #244457 -> Don't show vCards as external attachments. Fixes the problem the previous patch introduced when displaying attachments as NOT inline.

git-svn-id: svn://10.0.0.236/trunk@156894 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org 2004-05-25 00:37:36 +00:00
parent cca7512c06
commit 56f09f9774

View File

@ -390,7 +390,9 @@ 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")
return;
currentAttachments.push (new createNewAttachmentInfo(contentType, url, displayName, uri, notDownloaded));