Allow custom properties in contacts and mailinglist (in webextensions API)
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: john, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
Steps to reproduce:
When I try to set a property which is not part of the standard property set, I get
Type error for parameter properties (Unexpected property "X-DAV-ETAG") for contacts.update
According to
https://thunderbird-webextensions.readthedocs.io/en/latest/mailingLists.html
It is not possible to store custom properties besides name, description and nickname
Expected results:
As with the current implementation in Tb60, it should be possible to store custom properties in contacts.
For TbSync, I need to be able to store custom properties with contacts, to
a) extend the adressbook with additional fields
b) store sync related status /state information
Same is valid for mailingLists.
| Reporter | ||
Comment 1•7 years ago
|
||
The part About Name, description
| Reporter | ||
Comment 2•7 years ago
|
||
Bugzilla is driving me crazy. I had no intention to post comment #1. Sorry.
But I think my initial report is not clear enough:
My main request is to be able to add custom properties to a contact. If I try that at the moment I get the above error about "Unexpected property". I think this is a bug, because Geoff wrote that he switched from whitelisting to blacklisting and it should work to add custom properties.
My second request is to be able to add custom properties to a mailinglist, which is not supported at all at the moment. The MailingListNode does not have a properties object, but just 3 attributes for name, description and nickname. I would like to have a properties object as with the ContactNode, where I can add custom properties.
Comment 3•7 years ago
|
||
For the former, you can't use the hyphen character. It only accepts a to z, A to Z, 1 to 9 and underscore.
The latter would require changes to the core address book code. I won't rule out making such a change but I think it's unlikely to happen soon.
| Reporter | ||
Comment 4•7 years ago
|
||
Thanks for the update.
Would you consider to add one (1) extra field to mailinglist, where we can store JSON data and thus can store our own properties?
Comment 5•7 years ago
|
||
One is just as bad as many, but after some investigating, I think this may be simpler than I first thought.
| Reporter | ||
Comment 6•7 years ago
|
||
Thanks for considering.
I have created a Pull Request at the readthedocs page to add the info about the property name restrictions.
Updated•7 years ago
|
Updated•4 years ago
|
| Reporter | ||
Comment 8•9 months ago
|
||
Since contacts are now stored as vcards, custom properties can be added freely.
The remaining issue is how we handle lists, as they do not support custom properties. If we decide to store lists as group vcards (like apple), we could easily store custom properties there as well.
Description
•