Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #21 (permalink)  
Old 09-28-2007, 12:11 AM
ojehle ojehle is offline
Member
 
Join Date: Mar 2006
Posts: 18
ojehle is on a distinguished road
Default

Quote:
Originally Posted by hillman View Post
3. Port to Funambol v6. This will be the biggest task, requiring a thorough understanding of both projects
let me know if you begin there.... i was beginning already, but due to missing documentation of funambol i stopped in the middle.
Reply With Quote
  #22 (permalink)  
Old 10-02-2007, 06:13 AM
SpEnTBoY SpEnTBoY is offline
Elite Member
 
Join Date: Mar 2007
Location: Regina, Sask.
ZCS Version: Release 5.0.6_GA_2313.RHEL5_20080522104341 CentOS5 FOSS edition
Posts: 213
SpEnTBoY is on a distinguished road
Default

hillman, others,

Well at least someone is putting their money where their mouth is so to speak. I've heard rumors and seen threads regarding this initiative but nothing has ever come to fruition.

Your work is greatly appreciated!! although I am also but a hack ;-) ... I could still help with testing and debugging (systematic type stuff) and possibly _some_ coding .... although I'm really more of a scripter (PERL, shells etc).

If I can help remove some of the monotonous tasks so you can focus more on the larger stuff I'd be more than willing to give whatever spare cycles I have. Either way I just dont want this work to die lol
Reply With Quote
  #23 (permalink)  
Old 10-11-2007, 11:10 PM
hillman hillman is online now
Moderator
 
Join Date: May 2007
Location: Vancouver, Canada
ZCS Version: 5.0.4_GA_2101.RHEL5_64 NE
Posts: 58
hillman is on a distinguished road
Default

Although I haven't finished getting calendaring to sync properly, I thought I'd put a copy of what I have so far for anyone desperate to play with this stuff.

I have only been testing so far with a WM2003 device, using the Funambol SyncML plugin for WM2003 (available from their sourceforge site). It is labeled as "experimental", so take that for what it's worth.

Contact syncing seems to be working in both directions - new contacts in Zimbra properly get brought across to my PDA, and if I edit a contact on my PDA, the change gets reflected back into Zimbra next time I sync. I haven't played around with any of the extra fields -- I'm just using name and e-mail address.

Calendaring syncing worked ONE WAY -- from Zimbra down to the PDA. ALL events get sync'd - from every calendar that you own. No differentiation is made on the PDA, so they just all show up together. However, syncing a meeting created on the PDA from the PDA back to Zimbra currently doesn't work. I also haven't tried modifying an imported meeting on the PDA and syncing that back.

The calendar syncing is still very much broken. Each time you try to sync, it will, after a very lengthy comparison process, send the entire set of events down, creating duplicates (and then triplicates, quad, etc) on your PDA.

This code is Highly experimental and should be considered 'Alpha' at best. Don't use the calendaring to do anything but help work on the software (if you're so inclined ). It must also be used with the old Sync4j server, NOT the Funambol v3 or v6 servers. As I mentioned in a previous post, porting to the new server comes after getting the code to work in the first place.

Anyway, here's the link to what I've got so far - it includes both the s4j module and the source. The /docs directory contains a file explaining how to add the connector into the Sync4j server. I have only used it with the HSQLDB "memory based" database

http://www.sfu.ca/~hillman/ZimbraSync4j.tar.gz
Reply With Quote
  #24 (permalink)  
Old 10-12-2007, 07:26 PM
hillman hillman is online now
Moderator
 
Join Date: May 2007
Location: Vancouver, Canada
ZCS Version: 5.0.4_GA_2101.RHEL5_64 NE
Posts: 58
hillman is on a distinguished road
Default Update

After playing with my own configuration, I realize I'm actually somewhat closer to a working prototype than I thought.

First, when configuring the SyncML client, set your username to the full account on the server - i.e. "user@zimbra.foo.com", rather than just "user". This will ensure that you have permission to create and modify events on the server.

Second, when doing the initial sync, start with a 'recover' operation if at all possible. The Funambol SyncML client for WM2003 supports this - I'll try others. The 'recover' operation instructs the client to discard everything it has and grab everything from the server. This will prevent it from trying to match up what's already on your PDA and will ensure that the client and server are in sync to start with. After that, 'fast' syncs seem to work reasonably well.

I'm still having a problem with timezones though - when you change the time of an event on your PDA, it will treat the new time as a GMT time, usually resulting in your meeting moving to late night/early morning on the server.

So my prior warning about it being "highly" experimental is perhaps a bit harsh - it's just "experimental". If you have the inclination, and have a good backup of your calendar data, feel free to try it out with other PDAs. I would try it on a test account first though
Reply With Quote
  #25 (permalink)  
Old 10-13-2007, 09:33 PM
SpEnTBoY SpEnTBoY is offline
Elite Member
 
Join Date: Mar 2007
Location: Regina, Sask.
ZCS Version: Release 5.0.6_GA_2313.RHEL5_20080522104341 CentOS5 FOSS edition
Posts: 213
SpEnTBoY is on a distinguished road
Default

I plan on testing this very soon ... so far right now I only have the funambol server installed so I'll need to snag the sync4j stuff and hammer around with this. Either way the work is seriously appreciated!!!
Reply With Quote
  #26 (permalink)  
Old 10-16-2007, 05:59 AM
resol resol is offline
Junior Member
 
Join Date: Sep 2007
Posts: 2
resol is on a distinguished road
Default

Great news! I would really like to see zimbra having syncml capabilities some day!
Please keep on working on that!
Reply With Quote
  #27 (permalink)  
Old 10-18-2007, 12:51 AM
DenRaf DenRaf is offline
Member
 
Join Date: Oct 2007
Location: Belgium
ZCS Version: zcs-5.0.0_GA_1869.RHEL5.20071218205219
Posts: 16
DenRaf is on a distinguished road
Default

Can someone post here what is added in the database when configuring the ZimbraContactSyncSource and ZimbraCalendarSyncSource?

I've got everything working, but I just can't get my admin console to work properly.

Thx in advance.
Reply With Quote
  #28 (permalink)  
Old 10-18-2007, 08:56 AM
hillman hillman is online now
Moderator
 
Join Date: May 2007
Location: Vancouver, Canada
ZCS Version: 5.0.4_GA_2101.RHEL5_64 NE
Posts: 58
hillman is on a distinguished road
Default

Are you using the right version of the admin tool? The Funambol version won't work - you have to download the sync4j Admin tool from their forge site.

If you're running that version and it still won't work, there are two values that need to be inserted into a table, and two xml files that must be set up.

I think there are three key values that it inserts. The definitions for ical and vcard, and a URL. I think the URL may go into a file though, rather than into the DB, because I can't find it in any of my tables. Here's the inserts for the first two:

INSERT INTO SYNC4J_SYNC_SOURCE VALUES('ical','zimbra-1.0/zimbra-1.0/zimbra-calendar-1.0/iCal.xml','iCal','zimbra-calendar-1.0')
INSERT INTO SYNC4J_SYNC_SOURCE VALUES('vcard','zimbra-1.0/zimbra-1.0/zimbra-contact-1.0/vCard.xml','vCard','zimbra-contact-1.0')

The xml files are: Sync4j/server/config/zimbra-1.0/zimbra-1.0/zimbra-calendar-1.0/iCal.xml
Code:
<?xml version="1.0" encoding="UTF-8"?> 
<java version="1.4.2_08" class="java.beans.XMLDecoder"> 
 <object class="sync4j.zimbra.engine.source.ZimbraCalendarSyncSource"> 
  <void property="encode"> 
   <boolean>false</boolean> 
  </void> 
  <void property="info"> 
   <object class="sync4j.framework.engine.source.SyncSourceInfo"> 
    <void property="supportedTypes"> 
     <array class="sync4j.framework.engine.source.ContentType" length="1"> 
      <void index="0"> 
       <object class="sync4j.framework.engine.source.ContentType"> 
        <void property="type"> 
         <string>text/x-vcalendar</string> 
        </void> 
        <void property="version"> 
         <string>1.0</string> 
        </void> 
       </object> 
      </void> 
     </array> 
    </void> 
   </object> 
  </void> 
  <void property="name"> 
   <string>iCal</string> 
  </void> 
  <void property="sourceURI"> 
   <string>ical</string> 
  </void> 
  <void property="type"> 
   <string>text/x-vcalendar</string> 
  </void> 
  <void property="zimbraUrl"> 
   <string>http://localhost/service/soap</string> 
  </void> 
 </object> 
</java>
And Sync4j/server/config/zimbra-1.0/zimbra-1.0/zimbra-contact-1.0/vCard.xml

Code:
<?xml version="1.0" encoding="UTF-8"?> 
<java version="1.4.2_08" class="java.beans.XMLDecoder"> 
 <object class="sync4j.zimbra.engine.source.ZimbraContactSyncSource"> 
  <void property="encode"> 
   <boolean>false</boolean> 
  </void> 
  <void property="info"> 
   <object class="sync4j.framework.engine.source.SyncSourceInfo"> 
    <void property="supportedTypes"> 
     <array class="sync4j.framework.engine.source.ContentType" length="2"> 
      <void index="0"> 
       <object class="sync4j.framework.engine.source.ContentType"> 
        <void property="type"> 
         <string>text/x-vcard</string> 
        </void> 
        <void property="version"> 
         <string>2.1</string> 
        </void> 
       </object> 
      </void> 
      <void index="1"> 
       <object class="sync4j.framework.engine.source.ContentType"> 
        <void property="type"> 
         <string>text/vcard</string> 
        </void> 
        <void property="version"> 
         <string>3.0</string> 
        </void> 
       </object> 
      </void> 
     </array> 
    </void> 
   </object> 
  </void> 
  <void property="name"> 
   <string>vCard</string> 
  </void> 
  <void property="sourceURI"> 
   <string>vcard</string> 
  </void> 
  <void property="type"> 
   <string>text/x-vcard</string> 
  </void> 
  <void property="zimbraUrl"> 
   <string>http://localhost/service/soap</string> 
  </void> 
 </object> 
</java>
I think that's it..

Last edited by hillman : 10-18-2007 at 07:19 PM.
Reply With Quote
  #29 (permalink)  
Old 10-18-2007, 10:48 PM
jproig jproig is offline
Member
 
Join Date: Aug 2007
Posts: 29
jproig is on a distinguished road
Default funambol6 conector

Hi guys...
I am trying to help with this... if I rewrite the code of the zimbra connector to use Postgresql (wich is supported by funambol6) it would help?
thanks
Juan
Reply With Quote
  #30 (permalink)  
Old 10-18-2007, 11:15 PM
hillman hillman is online now
Moderator
 
Join Date: May 2007
Location: Vancouver, Canada
ZCS Version: 5.0.4_GA_2101.RHEL5_64 NE
Posts: 58
hillman is on a distinguished road
Default

Hello and welcome to the forums!

Thanks for the offer, however the connector already has support for Postgresql and mysql. I added in hsqldb support (just a very minor change to the mysql sql, really) because that's the default database used by Funambol/sync4j for a simple test setup.

But I'm no java programmer, so if you have java experience, you'd probably be able to make much faster progress than I am. I'm still working on step 1 - getting the bugs out of the current connector. Step 2, which is substantially larger, is to port it to Funambol 6 (which has a substantially different API, and modified frameworks that the connector had been relying on)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.zimbra.com/forums/zimbra-mobile/8924-zimbra-funambol-sync4j-code.html
Posted By For Type Date
Zimbra по-русски This thread Refback 12-09-2007 08:35 AM
funambol en Gennio This thread Refback 12-04-2007 03:09 PM
Untitled document This thread Refback 11-26-2007 02:23 PM
Zimbra: Zimbra Blog This thread Refback 11-25-2007 11:16 PM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 11-20-2007 05:59 AM
Untitled document This thread Refback 11-05-2007 06:24 AM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 10-30-2007 03:28 PM
Open Outlook Connector SyncML dev... - Zimbra - Forums This thread Refback 10-08-2007 12:40 PM
Funambol: Open Source: Community Projects This thread Refback 10-03-2007 12:58 AM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 10-01-2007 11:59 AM
funambol + Zimbra - SWiK This thread Refback 09-16-2007 08:20 AM
jenkner's bookmarks tagged with This thread Refback 08-31-2007 06:50 AM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 08-29-2007 01:45 PM
Zimbra + Funambol Sync4j Code - Zimbra - Forums - SWiK This thread Refback 08-20-2007 07:20 AM
mylesb's bookmarks tagged with This thread Refback 08-13-2007 08:30 AM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 08-09-2007 07:17 AM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 08-05-2007 06:32 AM
sync4j - SWiK This thread Refback 08-01-2007 01:13 AM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 07-30-2007 05:47 AM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 07-29-2007 10:37 PM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 07-28-2007 06:51 AM
Forum de la communaut Zimbra francophone / Synchronisation Zimbra 4.5.6 Open Source - C'est bon, a marche ! This thread Refback 07-28-2007 06:48 AM
funambol - SWiK This thread Refback 06-25-2007 03:31 AM
cool.dude.99's bookmarks tagged with This thread Refback 06-14-2007 12:23 PM
mylesb's bookmarks tagged with This thread Refback 06-10-2007 06:06 PM
mylesb's bookmarks tagged with This thread Refback 06-06-2007 12:33 AM
Zimbra™ Collaboration Suite - SWiK This thread Refback 06-05-2007 08:15 PM
funambol :: open source :: community projects This thread Refback 06-01-2007 02:34 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Clamav problem ? What's happening ? aNt1X Installation 23 02-14-2008 04:43 AM
Debian ETCH Install Well Done Zimbra! bobthebuilder Installation 11 07-30-2007 02:52 AM
Can't start Zimbra! zibra Administrators 5 03-22-2007 11:34 AM
Post instsallation problems Assaf Installation 14 01-29-2007 10:38 AM
svn version still won't start kinaole Developers 0 10-04-2006 06:47 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0