OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: raptorspike on September 04, 2004, 11:05:17 pm
-
Is there a program or extension that I can use to sync my SL-5500 with Mozilla's T-Bird and Sunbird? I REALLY want to stop using Outlook, but I have to use it to sync with my Zaurus. I need to get to something more secure
-
Unfortunately, I don't believe there is, especially not for the 3.10 5500 ROM. Especially not for Sunbird, as it's been available for only a few weeks, as far as I know.
-
I'm working on a limited solution for this problem, as I also use Thunderbird rather than Outlook. What I am writing is a shell script that reads an exported .ldif contacts list, and generates an xml file compatible with Opie-Addressbook.
I am currently getting a mostly successful conversion, with the following exceptions:
1) Not all fields are being imported. I've got the info for about 90% of the fields thus far.
2) Some characters are causing problems. The ldif file appears to convert some text to an alternate format, so I get a field that looks like this - ": TcOpbmRleg==" If anyone knows how to convert this back to ascii text, please let me know.
So far I have only written the script to import the data onto my Z. Obviously this won't be a complete solution as there is no way to sync the address books, however it should provide an interum solution for those who simply need their contacts to be available.
I'll get the script posted on my website as soon as I can so anyone interested can take a look and help troubleshot.
-
Script is available now at http://sourpuss.net/ldif2xml/ (http://sourpuss.net/ldif2xml/)
Keep in mind this is still alpha software!
usage is from the command line,
# ldif2xml <file.ldif>
This will create the file 'addressbook.xml' in the current directory. You should be able to move this file to /root/Applications/addressbook/ and start OpieMail.
Script has been tested on OZ3.5.1/opie.
Known issues:
1) Not all fields are being parsed, I'm still working on that.
2) There may be an issue with the last record not being added to the xml file. I believe this is tied directly to the problems reading some of the odd records.
3) If there is a problem reading a particular record, the data may get merged with the previous record. Check over the converted xml file carefully before overwriting any existing data!
-
I'm working on a limited solution for this problem, as I also use Thunderbird rather than Outlook. What I am writing is a shell script that reads an exported .ldif contacts list, and generates an xml file compatible with Opie-Addressbook.
Once you have that it might end up being trivial to use SyncML to sync the 2 data sets.
Might want to take a look into Sync4j (http://sync4j.funambol.com/)
It has a SyncServer part that's Java only, but the client API is J2ME (mobile java, could run on the Z), and C++ (*will* run on the Z, higher maintenace).
Especially not for Sunbird, as it's been available for only a few weeks, as far as I know.
Both Sunbird and Moz write to the same file format (iCal), so it wouldn't matter anyway.
-
I've eliminated some errors, and found how to convert the international characters. If you are indeed using international characters (for instance the é in Méndez), you will need to install python-core and python-netclient. If you are not using any special characters, or if you're not sure, just try running the script. It will run fine without python unless it detects some base64 encoding.
This resolves all except for one issue... If you copy an ldif file directly over from Windows, it will have linefeeds at the end of each line. Line 39 of the script is currently stripping the last character, however it does not do a proper test for the linefeeds. If I can find how to get SED to strip these, then all other parsing of the ldif files appears to be handled correctly.
Note that I still have not added the full list of fields to the conversion.
Updated script is available at http://sourpuss.net/ldif2xml/ (http://sourpuss.net/ldif2xml/)
[EDIT] I found a solution to stripping the CrLf by using the TR command. New script uploaded, so it should work flawlessly except for the missing fields.
-
New update again today. I've coded all of the fields which are a straight-across match. Not certain what to do with some things, such as Thunderbird having 2 address lines. I may have to re-work some of the code to merge fields together. Except for the second line of addresses, I have 100% conversion of all of Thunderbird's fields now.
Due to the upcoming holiday, I may not get any more coding done this week, but next week I intend to write up a reverse conversion (back to thunderbird) and take a look at the sync options that ev1l mentioned.
-
Nice to see you've stuck zith it Shdwdrgn. Can't wait to see the result, especially if you can get Sync with the K suite (Kapi/Kopi, etc) running
-
Script is available now at http://sourpuss.net/ldif2xml/ (http://sourpuss.net/ldif2xml/)
Keep in mind this is still alpha software!
Hy
I'm interested in sync (or just copy) my adrees book from Thunderbird to Z 5500.
But i can't download your script. i would like to try it.
Googling tha net i've found this python script that does what is supposed to: http://www.fifi.org/doc/sylpheed/tools/ldif-to-xml.py (http://www.fifi.org/doc/sylpheed/tools/ldif-to-xml.py)
Now i have the addressbook.xml, but i cant find where to put it.
Any help...
I've tried to copy it to /home/root/applications/addressbook.
I open the app but the contacts doesn't appear. when i go to the directory, the preavious file REappears.
I cant' find the right place to put it
------
Zaurus 5500
Sharp ROM 2.39