runbox7
runbox7 copied to clipboard
Import contacts - indicate which file type / import non-vcf
Nothing seems to indicate what type of contacts files can be imported (I tried an .ldif as thats what Claws will give me)
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
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
This is becoming more urgent as more people are using the calendar import feature in Runbox 7.
Could you pick up this @castaway?
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