Bug 415222 - Kaddressbook no tags in exported vcard
Summary: Kaddressbook no tags in exported vcard
Status: CONFIRMED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: 5.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-15 22:20 UTC by zvezdin
Modified: 2021-01-03 09:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zvezdin 2019-12-15 22:20:59 UTC
SUMMARY

Data is lost when exporting internal contracts as VCard. The internal .vcf file managed by Akonadi for a specific contract contains a  'categories' field that includes some information about the placed tags for a specific contract. The exported VCard file (tested with either VCard 3.0 or 4.0) does not contain that or any related fields.

STEPS TO REPRODUCE
1. Make an arbitrary contact and assign tags to it within the application
2. Observe that the internal .vcf file indeed contains information about the tags
3. Export the contact as a VCard 4.0 (works 3.0 too, haven't tested the rest)

OBSERVED RESULT

The exported .vcf file does not contain all all information about that contract, including tag fields.

EXPECTED RESULT

The exported .vcf file should contain all information that the application internally holds about the contact, including the very important, useful, and supported by the VCard standard tags feature. The beauty of having a standard is interoperability and data portativity and it would be great if Kaddressbook allowed for that.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Arch; KDE 5.17.4
(available in About System)
Comment 1 Jonathan Marten 2019-12-16 14:01:31 UTC
Categories export is explicitly disabled for VCard:

https://cgit.kde.org/kcontacts.git/tree/src/vcardtool.cpp#n257

Possibly because the export would only output the internal Akonadi category IDs, which are not useful for any other non-Akonadi application or import.  I had developed a fix for PIM 4 to output the category names instead, but it got overtaken by the PIM 5 release and still needs to be ported.  See also bug 332358.
Comment 2 zvezdin 2019-12-16 18:22:33 UTC
Thank you for the update. So it seems that this thread is essentially a duplicate from the 2014 one you linked. In any case I am quite unfamiliar with any of the technologies used in kaddressbook otherwise I could attempt migrating the patch. Given how old this is already, what could possibly be done at this stage to fix this? I'm pretty sure I'm not the only one looking to use kaddressbook as a frontend/editor of a cross-device syncronization of contacts and it's a pity that such a small issue can disrupt this potential.
Comment 3 Jose Da Silva 2021-01-03 09:38:54 UTC
Looking forward to hopefully see CATEGORIES exported in VCARD or some other manner, otherwise it would be difficult to backup anything useful.
I've added a small vcard sample in bug#377223 if that helps anything here for testing.