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

org-vcard import crashes on vcards without name

Open pavelmachek opened this issue 9 years ago • 3 comments

...and n900 creates those.

BEGIN:VCARD^M VERSION:3.0^M UID:osso-abook-tmc1^M X-SKYPE;TYPE=skype;X-OSSO-VALID=yes:echo123^M END:VCARD

pavelmachek avatar Jun 20 '15 07:06 pavelmachek

Well, the vCard 3.0 spec says that a vCard object MUST include an FN entry, so the n900 is being rather impolite here. :-)

Still, org-vcard should certainly be robust against such issues - thanks for reporting this! To help me work out how to handle this situation, could you let me know: does the n900 create vCards that don't have an FN or N entry, but do have other contact information (e.g. a telephone number)?

flexibeast avatar Jun 20 '15 13:06 flexibeast

Still, org-vcard should certainly be robust against such issues - thanks for reporting this! To help me work out how to handle this situation, could you let me know: does the n900 create vCards that don't have an FN or N entry, but do have other contact information (e.g. a telephone number)?

It certainly creates some with skype contacts. Not sure if it can happen with phone numbers.

pavelmachek avatar Jun 20 '15 18:06 pavelmachek

I guess you've enhanced things as it doesn't crash on: N=;;; FN= When importing a VCard, though, it creates a blank Org header with all the proper PROPERTY values. Is this right, though? What if the VCard is for a Company (ie. ORG=something)?

DSMasterson avatar Jul 15 '20 22:07 DSMasterson