Results 1 to 4 of 4

Thread: How to sync adress books between mail accounts?

  1. #1
    Join Date
    Jul 2008
    Location
    Austria
    Posts
    54
    Rep Power
    7

    Default How to sync adress books between mail accounts?

    We do have a global user called office. This user has all the shared adress books for the company. But two problems arise:

    1.) Shared Adress books are not recoginsed by the autocomplete function
    2.) Shared Adress books do not get synchronized with funambol (wolframa plugin)

    So the best Solution would be to simply synchronize (by a script lets say all 24 hours) the Adress Books of user "office" and any user who should get it.

    We did solve this by a script wich deletes all contacts in the target user adress books loads the curent adress books from the user office via wget (REST urls) and upload it to the wanted target users adress books back via curl.

    The problem is since we delete all contacts first funambol thinks those are new contacts and since the old ones are simply gone it leaves the adresses on the the mobile phone instead of deleting it wich ultimately leads to dubbling all the adresses for the local user...

    My next idea was to sync the to adress folders of the accounts via imapsync but it seems thath the type changes from contact to mail on synchronizing -> had anyone sucessfully synchronized contacts between two accounts via imapsync?!?

    an other option i will try is the STS Source to Source addon of funambol ... but there are no tutorials or hints how to do it so it could take a looooong while before this works ... if it works at all.

    Any other thoughts or hints how to sucessfully sync shared adress books?

  2. #2
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    Default

    Brainstorming...

    You might be able to do it with a script that calls

    zmmailbox -z -m <mailboxname> search -t contact in:</path/to/contacts>
    zmmailbox -z -m <mailboxname> gct <contact_id>
    zmmailbox -z -m <mailboxname> cct [attributes]

    etc.

    But it might be slow.

    It might be faster to use imapsync and then use zmmailbox to change the types back to contact.

    Also you might ask/test/search forums & bugzilla to see if an upgrade would fix (1) and (2) for you.

  3. #3
    Join Date
    Jul 2008
    Location
    Austria
    Posts
    54
    Rep Power
    7

    Default

    Thanks for your input!

    One Question remains:
    ---
    You mentioned i schould change back the type of the folder and items later on with zmmailbox but i did not find a way how to change the type of a folder or item in that folder from "message" to "contact" AFTER the folder has been created?!?

    Did you just guess this is possible or do you know how to do it?!?

    Thanks a lot!

  4. #4
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    Default

    Good question. I don't see a way to do that. But there has to be at least a way to change a folder's view between conversation and message, so maybe something is hidden somewhere.

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  2. Incoming connection problems
    By whiteoakprinting in forum Administrators
    Replies: 4
    Last Post: 11-14-2010, 07:46 PM
  3. Migration Assistance
    By dwill in forum Administrators
    Replies: 10
    Last Post: 12-02-2008, 07:20 AM
  4. [SOLVED] mailbox and apache not running
    By rtwick in forum Administrators
    Replies: 4
    Last Post: 11-15-2008, 07:21 AM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 08:24 AM

Posting Permissions

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