pinoaffe / org-vcard

Export and import vCards from within GNU Emacs' Org mode.
61 stars 7 forks source link

org-vcard import crashes on vcards without name #21

Open pavelmachek opened 9 years ago

pavelmachek commented 9 years ago

...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

flexibeast commented 9 years ago

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)?

pavelmachek commented 9 years ago

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.

DSMasterson commented 4 years ago

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)?