Results 1 to 7 of 7

Thread: Funambol - how to exclude folder from sync?

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    Czech Republic, Prague
    Posts
    66
    Rep Power
    8

    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.

  2. #2
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    7

    Default Same problem

    I have the same problem. Has anybody found a solution?

  3. #3
    Join Date
    Jan 2008
    Location
    Villa Park, IL
    Posts
    92
    Rep Power
    7

    Default

    Anyone found an answer to this?

  4. #4
    Join Date
    Jun 2009
    Location
    Vienna, Austria
    Posts
    3
    Rep Power
    6

    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

  5. #5
    Join Date
    Jan 2008
    Location
    Villa Park, IL
    Posts
    92
    Rep Power
    7

    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.

  6. #6
    Join Date
    Jun 2009
    Location
    Vienna, Austria
    Posts
    3
    Rep Power
    6

    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

  7. #7
    Join Date
    Mar 2012
    Posts
    1
    Rep Power
    3

    Default

    Thank Guys

    I don't compile Zimbra connector with the version described here.
    But, I can compile, make changes manually.

    I am working with Funambol 10 and Zimbra Network 7. The Zimbra Connector that I used is 0.6.02

Similar Threads

  1. Zimbra + Funambol Sync4j Code
    By KevinH in forum Mobility
    Replies: 563
    Last Post: 01-16-2010, 02:20 AM
  2. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 01:55 AM
  3. Error when Using Outlook PST Importer
    By chh in forum Zimbra Connector for Outlook
    Replies: 1
    Last Post: 01-19-2009, 05:20 AM
  4. Zimbra Open Source Backup Help
    By ayush1440 in forum Administrators
    Replies: 8
    Last Post: 11-13-2008, 04:56 AM
  5. Replies: 3
    Last Post: 08-11-2007, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •