org-vcard icon indicating copy to clipboard operation
org-vcard copied to clipboard

vcf files exported by icloud

Open DrWaleedAYousef opened this issue 2 years ago • 1 comments

My vcf file is exported from icloud. It has entries like this one:

BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//iOS 15.5//EN
N:Dr;Name;Name;;
FN:Name Name Dr
TEL;type=CELL;type=VOICE;type=pref:0123456789
item1.TEL:0123456789
item1.X-ABLabel:X-Name
item2.TEL:0123456789
item2.X-ABLabel:X-Private
REV:2022-06-15T01:00:46Z
END:VCARD

When I convert this file to org contacts, only the name is converted:

* Name Name Dr
:PROPERTIES:
:VERSION: 3.0
:N: Dr;Name;Name;;
:END:

Thanks.

DrWaleedAYousef avatar Nov 10 '22 18:11 DrWaleedAYousef

There are a couple of issues here:

  • i've not looked at the vCard specs for a while, but i believe the "itemn.*" lines might not be in the standards, and/or not in the formats specified by the standards. There's a customisable boolean variable, org-vcard-include-import-unknowns, which you could try setting to t to ask org-vcard to import such data even if it can't parse it properly.

  • Based on the output you provided, org-vcard is working as-designed: it's using the data of "FN" as the content of the contact's Org heading (the first line), and making "N" and its data an Org property. There's a customisable variable org-vcard-default-property-for-heading to influence this.

All that said, as i recently noted in a comment on another issue:

it's been years since i've actively used Org and org-vcard for managing contacts, and i'm no longer interested in working on this package - i have many other things on my plate that are a much higher priority for me. So i'm going to seek a new maintainer.

i've just updated the README to reflect this, and i'll shortly be submitting a post to r/emacs, seeking a new maintainer.

flexibeast avatar Nov 11 '22 03:11 flexibeast