runbox7 icon indicating copy to clipboard operation
runbox7 copied to clipboard

Import contacts - indicate which file type / import non-vcf

Open castaway opened this issue 4 years ago • 4 comments

Nothing seems to indicate what type of contacts files can be imported (I tried an .ldif as thats what Claws will give me)

castaway avatar Apr 09 '20 13:04 castaway

The format is VCF, and yes it needs some sort of note about that.

Another thing is that, apparently, when you feed it something like Gmail's CSV it just ignores the wrong format and claims that it "imported" 0 contacts: https://community.runbox.com/t/hassle-free-contacts-import-please/1207. We should at least show up an error message in this case, before we build CSV support into Runbox7

tadzik avatar May 05 '20 16:05 tadzik

Thoughts for implementing import of non-vcf (vCard) files:

Internally store known file types, eg list of (current, how often do they change!?) CSV column headers for: google csv export, yahoo csv export, outlook csv export

When user clicks "Import Contacts":

  • Load file content
  • Guess type of file - VCARD, CSV; which type of csv based on header row
  • If obvious (vcard or matches known csv precisely) - continue
  • If non-obvious - ask user, import understood columns
    • OR: Ask user to map columns (as per existing RMM6 method)
  • Pop up dialog box re groups/categories
  • Import data

castaway avatar May 20 '20 09:05 castaway

This is becoming more urgent as more people are using the calendar import feature in Runbox 7.

Could you pick up this @castaway?

gtandersen avatar Sep 26 '20 17:09 gtandersen

Better VCF checking was added with #583 's ICS file type checking - however it seems that this might be a bit too strict for some browsers (we're getting some issues with valid files not importing) - I'm going to change it to a "Are you really sure?" style check

castaway avatar Feb 04 '21 12:02 castaway