Closed Bug 1694339 Opened 3 years ago Closed 3 years ago

vCard parsing should handle group prefixes

Categories

(MailNews Core :: Address Book, defect)

defect

Tracking

(thunderbird_esr78+ fixed, thunderbird87+ fixed)

RESOLVED FIXED
88 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird87 + fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

When a contact has an email address or telephone number (or probably other things) that isn't labelled "work" or "home", Google prefixes the item with non-standard labels, then includes the label in a second property:

item1.EMAIL:email@domain.tld
item1.X-ABLabel:Unusual

The information in item1.EMAIL is useful to us, because it's an email address. We should use it. The information in item1.X-ABLabel is not, but could be one day.

In this bug I'm proposing to just ignore the "itemX." prefix on any line that exists, so that the information can be treated like a standard vCard.

Summary: Google adds non-standard properties to vCards which we should use → vCard parsing should handle group prefixes
Attachment #9204759 - Attachment description: Bug 1694339 - Ignore non-standard property prefixes that Google CardDAV servers add to vCards. r?mkmelin → Bug 1694339 - Handle vCard group-prefixed properties when parsing. r?mkmelin
Attachment #9204759 - Attachment description: Bug 1694339 - Handle vCard group-prefixed properties when parsing. r?mkmelin → Bug 1694339 - Handle vCard group-prefixed properties when parsing. r?mkmelin

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/e1f7dfb6ba35
Handle vCard group-prefixed properties when parsing. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

Comment on attachment 9204759 [details]
Bug 1694339 - Handle vCard group-prefixed properties when parsing. r?mkmelin

[Approval Request Comment]
Regression caused by (bug #): Never worked
User impact if declined: Contacts sync'ed with Google etc. might be missing some key values
Testing completed (on c-c, etc.): Landed two weeks ago
Risk to taking this patch (and alternatives if risky): There is a quite small risk of CardDAV servers complaining that we do something odd, but I've not seen any problems so far and CardDAV is clearly marked experimental in 78

Attachment #9204759 - Flags: approval-comm-esr78?
Attachment #9204759 - Flags: approval-comm-beta?

Comment on attachment 9204759 [details]
Bug 1694339 - Handle vCard group-prefixed properties when parsing. r?mkmelin

[Triage Comment]
Approved for beta

Attachment #9204759 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9204759 [details]
Bug 1694339 - Handle vCard group-prefixed properties when parsing. r?mkmelin

[Triage Comment]
Approved for esr78

Attachment #9204759 - Flags: approval-comm-esr78? → approval-comm-esr78+
See Also: → 1770066
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: