GNOME Bugzilla – Bug 658585
Support adding contacts from vCards
Last modified: 2014-08-12 23:11:16 UTC
Bug #656782 would ideally be solved by some nice API in Folks to "deep add" a contact given their vCard. Eg, with a vCard like: FN:Foo Bar X-JABBER:foo@example.org EMAIL:foo@bar.example.org we would create the entry in EDS but also add foo@example.org to an appropriate Tpf.PersonaStore. So we'll need machinery to check which PersonaStores can do something special for any given field (eg, a Telepathy PersonaStore adding a contact (to a given contact list)). Note that this gets a bit more complicated - X-JABBER:foo@example.org should only be added to an XMPP account's contact list, so we'll need PersonaStores to advertise specific capabilities. And we'll need to report back the options. Eg, Foo Bar may be a business contact I don't want to add to my personal Jabber account, so we'll need to give options for the client to report to the user. Ie, this isn't quite a trivial feature (to get right).
Can we start by just trying to add the proper fields to the Persona belonging to the default/writable backend ?
Thinking about this, are there any properties which need to be imported to specific backends, *apart* from IM addresses? I can’t see any. In that case, and because this would need heavy UI integration, I wonder if it’s better to keep this out of folks, and just implement it directly in gnome-contacts. If it turns out that some of the code is good to be reused in folks, we can always move it across. ⇒ WONTFIX.