Add labeled properties (multivalued attributes) to nsIAbCard
Categories
(MailNews Core :: Address Book, defect, P1)
Tracking
(Not tracked)
People
(Reporter: jcranmer, Assigned: darktrojan)
References
Details
Attachments
(4 files, 4 obsolete files)
Reporter | ||
Comment 1•16 years ago
|
||
Reporter | ||
Comment 2•16 years ago
|
||
Comment 3•16 years ago
|
||
Reporter | ||
Comment 4•16 years ago
|
||
Comment 5•16 years ago
|
||
Comment 6•16 years ago
|
||
Reporter | ||
Comment 7•16 years ago
|
||
Updated•16 years ago
|
Comment 8•16 years ago
|
||
Updated•16 years ago
|
Reporter | ||
Comment 9•16 years ago
|
||
Reporter | ||
Updated•16 years ago
|
Reporter | ||
Comment 10•16 years ago
|
||
Reporter | ||
Comment 11•13 years ago
|
||
Reporter | ||
Comment 12•13 years ago
|
||
Reporter | ||
Comment 13•13 years ago
|
||
Updated•13 years ago
|
Comment 14•12 years ago
|
||
Comment 15•12 years ago
|
||
Reporter | ||
Updated•12 years ago
|
Reporter | ||
Updated•12 years ago
|
Comment 16•3 years ago
|
||
I guess we can use this bug for the backend full vCard support.
Assignee | ||
Comment 17•3 years ago
|
||
There are two new classes: VCardProperties which represents an entire vCard, and VCardPropertyEntry which represents a single entry in a vCard.
These are based around the data structures returned by ICAL.parse and have methods for manipulating the data, then returning it to ICAL.stringify.
Two new properties are added to nsIAbCard, a boolean showing support for vCard (or lack thereof), and an instance of VCardProperties.
Depends on D139897
Assignee | ||
Comment 18•3 years ago
|
||
This adds the actual support for vCard to AddrBookCard. The vCard data for a card is stored as a string in the _vCard property, as is already the case for CardDAV cards.
To avoid parsing the entire vCard unnecessarily, common properties are also stored in the database and used where possible. These properties can no longer be set directly on the card to prevent problems.
Depends on D140510
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 19•3 years ago
|
||
I'm going to land part one now that we've started a new version. It shouldn't really change anything, but it does mean further development can go ahead without a full build.
Comment 20•3 years ago
|
||
Assignee | ||
Comment 21•3 years ago
|
||
Comment 22•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 23•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/3883d4dbda20
Upgrade ABView classes to handle vCard properties. r=mkmelin
Comment 25•3 years ago
|
||
I see that #118665 has been marked as a duplicate of this, will this fix actually fix that bug (not allowing more than 2 email addresses per card).
In fact, for the OSX Address Book integration it currently only shows one email address, and no other information at all, and doesn't recognize any address but that first email address in auto-completion. Should that be posted as a new bug ?
Seriously - the Thunderbird Address Book is next to useless as it currently stands, I have to cut-and-paste email address from the OSX Address Book into emails most of the time.
Assignee | ||
Comment 26•3 years ago
|
||
This will allow more than two addresses per card but won't fix the macOS Address Book. Yes, you should file a new bug. There may already be one, check first.
Comment 27•3 years ago
|
||
I guess it was too much to hope that it would fix a 21 year old bug# 118665 :-(
I've filed bug# 1770851 which actually documents regressions with OSX Address Book (its gone down from 2 addresses to 1), though until bug# 1720257 is fixed OSX Address Books are unavailable to all but geeks who can do the hack documented there.
Description
•