From: Alan P. <api...@ma...> - 2003-04-05 20:01:00
|
Good news! I have just succeeded at writing a nice vCard parser for bitpim based on the approach in this message: http://sourceforge.net/mailarchive/message.php?msg_id=4245003 I used it against my own Address Book export and successfully put in 74 contacts to my phone. The phone supports up to 5 phone numbers and 3 emails. Since vCard supports arbitrary numbers of these, I basically go through the vCard and "fill up" the following structure until it's full: Full Name 2 home 2 office 2 mobile 2 fax pager 3 emails Each are truncated if they exceed the LG's maximums (22 chr names, 48 chr phone & email). Since the vCard format includes type=(HOME|CELL|WORK|PAGER|FAX) it's trivial to properly setup the LG type mappings. I then strip all non-digits from the phone numbers and construct the result['phonebook'] structure. That structure then must be added to the .bitpim-files/phonebook/index.idx file. The result was wonderful. Right now it's all in a self-contained code chunk. I am going to work on integrated it with the GUI next. If anyone's interested in the code, let me know. Also, what's the process for getting a cvs login for commits? Thanks, Alan On Thursday, April 3, 2003, at 07:49 PM, Roger Binns wrote: >> Specifically the #1 thing to do is importing vCard entries to the >> contact list. This was my main hope for BitPim as I want to put about >> 100 contacts on and don't want to do it manually... > > See this message: > > http://sourceforge.net/mailarchive/message.php?msg_id=4245003 > >> how would I get involved? > > Check out the CVS tree and start hacking. > |