As a User of Roundcube I would like to have a better description how my CSV file must look like to get my contacts successfully imported.
On the Contacts -> Import Page is stated that CSV and vCard Format is accepted to import contacts.
Importing one or more contacts in a vCard formatted file works as expected ✅
But it took me a few tries and some searching on the internet to get my CSV file imported with all information I wanted.
So I would like to see that information on the import page.
At least it should contain the following fields as a little sample:
optional:
maybe it will end in a complete table of all possible fields, cause I think non technical users are not able to get it from the php file it self in case they need more than I picked above.
Where and how do I put the group identifier in the csv to import or somewhere else?? So wish there was a step by step tutorial or video for this. When I import the csv with correct column headers, it imports only to the main address book. Then I have to drag/drop each contact to the group.
I think you need to add "group" as a header. The first line of your csv file has to be the header line. Followed by all your data you want to import.
csv file example with header line and one data line, just add more data lines to import more than one contact.
"first_name","last_name","display_name","email","group"
"Hans","Meier","Hans Meier (private)","[email protected]","awesometeam"
User Story
As a User of Roundcube I would like to have a better description how my CSV file must look like to get my contacts successfully imported.
Detail Information
On the Contacts -> Import Page is stated that CSV and vCard Format is accepted to import contacts.
Importing one or more contacts in a vCard formatted file works as expected ✅
But it took me a few tries and some searching on the internet to get my CSV file imported with all information I wanted.
So I would like to see that information on the import page.
At least it should contain the following fields as a little sample:
* first_name (string, UTF-8?) * last_name (string, UTF-8?) * birthday (format? string? datetime?) * email (string, UTF-8?)optional:
* mobile_phone (string, UTF-8?) * home_phone (string, UTF-8?) * home_street (string, UTF-8?) * home_city (string, UTF-8?) * home_state (string, UTF-8?) * company (string, UTF-8?) * web_page (string, UTF-8?) * group (string, UTF-8?) this will add the contacts to existing roundcube addressbooks or adds the addressbook in roundcube if selectedmaybe it will end in a complete table of all possible fields, cause I think non technical users are not able to get it from the php file it self in case they need more than I picked above.
sources
* https://github.com/roundcube/roundcubemail/blob/master/program/lib/Roundcube/rcube_csv2vcard.php * https://github.com/roundcube/roundcubemail/blob/master/program/localization/en_US/csv2vcard.inc * https://stackoverflow.com/questions/20469399/importing-address-book-in-roundcube-doesnt-do-anything
Hi Sebastian,
I think I'm using the correct but still couldn't uploaded to Roundcube Contacts.
Can you please advise?
@kentchee I think your file is missing the quotation marks (").
should look like this:
"first_name","last_name","display_name","email"
"","","SOME TRADING","[email protected]"
I also recommend to delete your uploaded file as it looks like valid data which may should not be public available on github?
@kentchee I think your file is missing the quotation marks (").
should look like this:
"first_name","last_name","display_name","email" "","","SOME TRADING","[email protected]"I also recommend to delete your uploaded file as it looks like valid data which may should not be public available on github?
Thanks Sebastian.
But how can I "save as" csv file from excel work sheet with the quotation marks?
I have deleted the uploaded file.
I think the following steps should do it:
from https://lenashore.com/2012/04/how-to-add-quotes-to-your-cells-in-excel-automatically/
If that is not working maybe this one can help: https://stackoverflow.com/questions/25237847/adding-double-quote-delimiters-into-csv-file/25238157
There's #7045 in draft.
#7045 has been merged into master. If you still think the documentation should be improved, create a wiki page.
Most helpful comment
There's #7045 in draft.