Page 1 of 1

Import vcard 3.0 contacts to Trojita

PostPosted: Dec 25th, '15, 13:32
by dglent
I use google contacts for the contacts and i have them available on my phone and tablet.
On my pc i use Trojita, and to have my contacts there i use this script:

https://github.com/dglent/vcf2addressbook

It can be launched without any argument so it sorts the existing contacts of Trojita

Or, with the contacts.vcf file (vcard 3.0) as an argument, and it will convert the contacts.vcf to addressbook Trojita file. In this case it overwrites the existing file and contacts (no merge).

Launch the script in the folder: "~/.abook/"
Code: Select all
python vcf2addressbook.py contacts.vcf


My wishes for the end of the year (Christmas or what ever you celebrate)

Re: Import vcard 3.0 contacts to Trojita

PostPosted: Dec 25th, '15, 19:50
by doktor5000
Hi there, is this meant as a solution for others? Then I'd move it into our tips&tricks subforum.
In any way, thanks for sharing :D

Re: Import vcard 3.0 contacts to Trojita

PostPosted: Dec 26th, '15, 05:27
by dglent
Hi! Yes for me was a solution in order to use the addressbook in Trojita. I have started to import manually the addresses and i realised that i need a tool.
I suppose that it would be useful for other Trojita users too.