You are not logged in.

#1 2014-03-23 18:23:29

Lucas8
Member
Registered: 2013-07-12
Posts: 6
Website

Abook file parser

I recently started to use Abook to manage my contacts on my computer. After tries, I had to merge two addressbooks, and I didn't find any program to do so.

After a few thinking about it, I decided to write a c++ library allowing to load, edit and save addressbooks in abook format. You can find the code on github. The code is really small and only use the c++ standard library, so you should have no problem compiling it : just hitting 'make' should work.

Along with the library, the is a little test program merging addressbooks. It can also be used to remove duplicated entries in an addressbook. To compile it, do 'make test', and to use it,

./merger.prog result_addressbook addressbooks_to_merge_1 addressbook_to_merge_2 ...

The idea behind this program is keeping addressbooks from differents devices synchronised. I'll eventually make a program to get the contact from an Android phone and save them as an addressbook, merging them with the local addressbook and pushing the result back onto the phone.

Don't hesitate to signal some problems either the program or the library, and if someone has already a program like that.

Hope you find it useful.

PS : I'm not a native english so if I use bad formulation or I'm not clear enough, please tell me.


My GitHub.

Offline

#2 2014-07-28 06:15:57

pedromj
Member
Registered: 2010-10-27
Posts: 51

Re: Abook file parser

That would be great. I am interested in a way to send contacts from abook to my Android phone so, please, keep us informed. Thank you.


Entia non sunt multiplicanda praeter necessitatem

Offline

#3 2014-07-28 15:50:26

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Abook file parser

Sounds like a good idea. Just making sure you're aware of goobook for syncing Google contacts.

Scott

Offline

#4 2014-07-28 15:58:20

pedromj
Member
Registered: 2010-10-27
Posts: 51

Re: Abook file parser

I suppose the last comment may be for the OP.

From my side, I know goobook but what I want is to make the contacts in "abook" to be the *main* ones and then spread them to my Android phone or even my Google Account if needed.

Regards,
Pedro


Entia non sunt multiplicanda praeter necessitatem

Offline

#5 2014-07-29 13:46:15

Lucas8
Member
Registered: 2013-07-12
Posts: 6
Website

Re: Abook file parser

My main motivation was to synchronise my abook with my android phone, but without using google contacts (I try to avoid google services in general).


My GitHub.

Offline

#6 2014-11-20 10:44:33

quite
Member
Registered: 2013-02-15
Posts: 24

Re: Abook file parser

How's it going? I would be very happy to have such a solution for syncing abook-android contacts, without being pestered with google-contacts. The idea is to have a small app on the device which and send and receive together with a little desktop program?

Offline

#7 2014-11-20 16:56:12

Lucas8
Member
Registered: 2013-07-12
Posts: 6
Website

Re: Abook file parser

I'm not working on this project anymore (or on any project) because I don't have free time this year. Furthermore, from what I've found, there is no elegant way of syncing with the phone. The best way I found was to create an app on the phone which would save the contacts to a file, transfer it to the computer merge it there, then transfer it back to the phone and replace the contacts by the contents of this file. It shouldn't be too hard for someone with basic skills in android programming, but it is not my case. So if anyone feels interested enough to do it, feel free.


My GitHub.

Offline

Board footer

Powered by FluxBB