Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Mobility > Zimbra Mobile

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-23-2009, 03:25 AM
Senior Member
 
Posts: 53
Default Funambol - how to exclude folder from sync?

I have one problem with funambol. It also sync folder 'emailed contacts'. Is there any way how to exclude this folder?

Thanks for help.
Reply With Quote
  #2 (permalink)  
Old 02-10-2009, 12:05 PM
Starter Member
 
Posts: 1
Default Same problem

I have the same problem. Has anybody found a solution?
Reply With Quote
  #3 (permalink)  
Old 04-03-2009, 08:17 AM
Active Member
 
Posts: 29
Default

Anyone found an answer to this?
Reply With Quote
  #4 (permalink)  
Old 06-23-2009, 01:06 AM
New Member
 
Posts: 3
Default

Hi!

I managed to sync only the default Contacts folder by adding three lines of code:

Code:
diff -uNr ru.korusconsulting.orig/src/java/ru/korusconsulting/connector/base/ZimbraPort.java ru.korusconsulting/src/java/ru/korusconsulting/connector/base/ZimbraPort.java
--- ru.korusconsulting.orig/src/java/ru/korusconsulting/connector/base/ZimbraPort.java  2008-04-24 11:42:30.000000000 +0200
+++ ru.korusconsulting/src/java/ru/korusconsulting/connector/base/ZimbraPort.java       2009-06-23 08:44:49.000000000 +0200
@@ -168,6 +168,7 @@
         Element contactsRequest = (Element) soapHelper.getBody(request).elements().get(0);^M
         {^M
             contactsRequest.addAttribute(ZConst.A_SYNC, "1");^M
+            contactsRequest.addAttribute(ZConst.A_FOLDER, folderHolder.getDefaultFolderId(FolderHolder.CONTACT));^M
         }^M
         Document response = sendRequest(request);^M
         Element body = soapHelper.getBody(response);^M
@@ -229,6 +230,7 @@
             }^M
             contactsRequest.add(cn);^M
             contactsRequest.addAttribute(ZConst.A_SYNC, "1");^M
+            contactsRequest.addAttribute(ZConst.A_FOLDER, folderHolder.getDefaultFolderId(FolderHolder.CONTACT));^M
         }^M
 ^M
         Document response = sendRequest(request);^M
@@ -335,6 +337,7 @@
             }^M
             contactsRequest.add(attr);^M
             contactsRequest.addAttribute(ZConst.A_SYNC, "1");^M
+            contactsRequest.addAttribute(ZConst.A_FOLDER, folderHolder.getDefaultFolderId(FolderHolder.CONTACT));^M
         }^M
 ^M
         Document response = sendRequest(request);^M
I think it wouldn't be too hard for the author to add an option to the management interface enabling users to restrict synchronisation to the default contacts folder...

@ the author: Incredible work! Thank you very much for this excellent piece of software!

Regards,
Daniel
Reply With Quote
  #5 (permalink)  
Old 06-23-2009, 12:44 PM
Active Member
 
Posts: 29
Default

Daniel,

Where can I make this modification? This would absolutely make my iPhone perfect. I just synced mine a couple of days ago, forgetting about this, and now how dozens of "junk" entries in my contacts.
Reply With Quote
  #6 (permalink)  
Old 06-23-2009, 12:58 PM
New Member
 
Posts: 3
Default

First of all: BACKUP YOUR CONTACTS!!!

Then go on... ;-)

You can get the source code here:

SourceForge.net: Funambol Zimbra Connector: Downloading ...

and the instructions for building here:

SourceForge.net: zimbrafunambol » build_from_source

Then replace the original ZimbraConnector.s4j with your custom one and run install-modules as documented in the installation guide. Do not recreate the databases or you will need to reconfigure the data sources in the Funambol administration tool.

For debugging purposes you can raise the logging level of Funambol to DEBUG (in the admin tool) and issue a "tail -f ds-server.log" to see what is going on during a sync.

Good luck!
Daniel
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0