From cf1eb34db917903c131b545043c27b503887020a Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Tue, 25 May 2004 00:37:36 +0000 Subject: [PATCH] Bug #244457 -> Don't show vCards as external attachments. Fixes the problem the previous patch introduced when displaying attachments as NOT inline. --- mail/base/content/msgHdrViewOverlay.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail/base/content/msgHdrViewOverlay.js b/mail/base/content/msgHdrViewOverlay.js index 5622af33b2e7..502cceaf744e 100644 --- a/mail/base/content/msgHdrViewOverlay.js +++ b/mail/base/content/msgHdrViewOverlay.js @@ -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));