tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
5.98k stars 513 forks source link

Support vCard v4 for contact import #1328

Closed armhub closed 2 years ago

lvankampenhout commented 4 years ago

I am migrating from Protonmail and exported my contacts in a .vcf (vCard) file. On import, I get the error Can not read vCard file. and it turns out the version of the vCard files generated by Protonmail is 4.0.

lvankampenhout commented 4 years ago

My current workaround is to import this vCard into Apple Contacts, under a separate and temporary group. Exporting the group will create a v3 file that is recognized by Tutanota. The contact group can now be deleted.

mpfau commented 4 years ago

We should check if the following lib would be appropriate: https://github.com/jhermsmeier/node-vcf/blob/master/lib/vcard.js. It seems to support versions 2.1, 3 and 4.

see also #1513

DerAndere1 commented 2 years ago

I tried to import the adressbook from Thunderbird (which exports vCard v4) and also got the error message "Can not read vCard file.". A workaround that worked for most contacts, but not for all:

  1. Create a copy of the vCard file and open it in a plain text editor
  2. Change all occurances of VERSION:4.0 to VERSION:3.0 and save the file
  3. In the tutanota client (or web interface), import the modified vCard file.
  4. Verify all contacts. Some may be missing when using this workaround.
ganthern commented 2 years ago

Test Notes