Open Bug 1717223 Opened 3 years ago Updated 2 years ago

Empty inline content when a vcard with multiple contacts is attached.


(Thunderbird :: Message Reader UI, defect)

Thunderbird 91


(Not tracked)


(Reporter: henry-x, Unassigned)


(Blocks 1 open bug)



(2 files)

Steps to Reproduce

Open an email with a text/x-vcard attachment that contains more than one contact. i.e. more than one BEGIN:VCARD ... END:VCARD. Make sure "Display attachments inline" is checked. I've attached an .eml file with such an attachment which you can open with thunderbird or mach run as a command line argument.

Note, once Bug 1667716 patch lands, an attachment with text/vcard content will also work. In which case you can create the email in Thunderbird (which exports text/vcard content).


The email only shows the message content, but nothing from the attachment inline. Moreover, the email looks like it has no attachments.


Either all the contacts in the attachment to be shown inline. Or the attachment should appear as a regular attachment.


I think this line is the origin of the missing content, which is returned if VCardUtils.vCardToAbCard(data) throws an error. Doing some debugging, there is indeed an error thrown, with the stack:

TypeError: name.replace is not a function

There's not much to read from the error/stack, other than the method is not built to handle multiple contacts.

Here's a message with a x-vcard attachment that only contains one contact, which you can open for comparison to see the expected behaviour.

Blocks: 1717227
See Also: → 583572
You need to log in before you can comment on or make changes to this bug.