Sync Shared Contacts on Zarafa

994 views
Skip to first unread message

StarryPrabin

unread,
Apr 15, 2013, 6:15:24 AM4/15/13
to tzp...@googlegroups.com
Hello,

I use zarafa groupware. I have some contacts that are shared to all the members of our group. I want to access those contacts.

The solution that I am doing is copying those contacts from zarafa web interface to my contacts and syncing it with Thunderbird. This works perfectly.

Is it possible to sync shared contacts seamlessly?

Thanks for your reply.

PS: Thanks once again for your life saving extension.

Prabin

Mark Nethersole

unread,
Apr 17, 2013, 12:29:51 PM4/17/13
to tzp...@googlegroups.com
I will look into this. I do not know how activesync handles this yet. I will poke around.

Mark Nethersole

unread,
Jul 28, 2013, 10:35:41 AM7/28/13
to tzp...@googlegroups.com
Have been working on a version 2 that will be able to sync multiple address books. Looks good so far.

To have a shared address book you need to look at http://www.zarafa.com/wiki/index.php/Z-Push_shared_and_public_folder_sync

I need to test this. I will post version 2(beta) in the next couple of day.

Mark 

Mark Nethersole

unread,
Aug 18, 2013, 11:02:59 AM8/18/13
to
New version able to sync multiple address books/shared address books available. I am still working on this so let call it a beta.
From google code page -
"This version will allow you sync multiple address books from server. Also allows for shared address book.  To have a shared address book you need to look at -
If upgrading, allow tz-push to do a at least one sync. This will auto save your current configuration. Then go to "address book options" tab, select your new thunderbird addressbook and server address book combination. If no server address books are shown, click on "Get Server Folders". Type name (single word) into box below "Get Server Folders" and click "Save folder and sync key".
Use a different thunderbird address book for each combination."

Let me know if instructions are not clear.

Mark

StarryPrabin

unread,
Aug 19, 2013, 6:35:37 AM8/19/13
to tzp...@googlegroups.com
Hi, 
Thanks for the add-on.I have installed on my server and tried it. Currently it is working perfect on my system.
If i have some problems i will notify you. 

I have one question though I tried the same thunderbird address book for server shared address book. I deleted everything from my local address book and tried to sync again. I am afraid that i have deleted some shared contacts also.
Here is the output I got in error console.

tzpush delete cards : [Exception... "Component returned failure code: 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsILocalFile.create]"  nsresult: "0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS)"  location: "JS frame :: chrome://tzpush/content/observers.js :: AbListener_onItemRemoved :: line 145"  data: no]

what does this error mean?

Prabin

Mark Nethersole

unread,
Aug 20, 2013, 5:48:53 AM8/20/13
to tzp...@googlegroups.com
Hi.
When tzpush detects a card (address book entry) being deleted from thunderbird it creates a file with the z-push serverID as a name in profile/DeletedCards. This is read and sent as a delete on the next sync. The new version of tzpush needs to create a folders in DeletedCards to represent each address book. If a card has not been synced, there is no serverID, Tzpush should ignore this. What is happening is a file is being created with the address book name. More deletes try to recreate the file, leading to the error. It is non fatal, but ugly. I will deal with this. Thanks for catching this, and being the first user of tzpush-2. (not including me).
Mark

Mark Nethersole

unread,
Aug 24, 2013, 11:17:46 AM8/24/13
to tzp...@googlegroups.com
Have fixed above errors. New version available at https://code.google.com/p/tz-push/
Mark

richard.g...@gmail.com

unread,
Nov 23, 2013, 6:40:58 AM11/23/13
to tzp...@googlegroups.com
Having tried out version 2 of tz-push, I notice that I can't see a zarafa public folder containing addresses; I can only see my own address books. Is this correct or should I be able to see the public folder (not one of mine that's shared). (Does that make sense??)

richard.g...@gmail.com

unread,
Nov 24, 2013, 7:58:29 AM11/24/13
to tzp...@googlegroups.com
Ok, now I've updated the config.php and restarted, I can now see the public folder. Problem now is that even though I'm the owner (specific privileges) and everyone (there's only 3 of us!) has secretary privileges, the sync appears to work (set to 5 minutes) - at least the error console doesn't show any errors, nothing is being copied from the Zarafa folder to the local addressbook.

richard.g...@gmail.com

unread,
Nov 24, 2013, 7:59:47 AM11/24/13
to tzp...@googlegroups.com
Incidentally; the version I'm using is 2.0.2

Mark Nethersole

unread,
Nov 28, 2013, 7:17:09 AM11/28/13
to tzp...@googlegroups.com
I am currently working on an update of tzpush2. 
Mark

Mark Nethersole

unread,
Dec 28, 2013, 8:18:21 AM12/28/13
to tzp...@googlegroups.com
There is a new version of tzpush2 available.
Mark

fymu...@gmail.com

unread,
Dec 29, 2013, 10:50:14 AM12/29/13
to tzp...@googlegroups.com
Hi Mark,
i tried you AddOn. Works great with my contacts, but with public folder contacts i have some problems.

Maybe i made some mistakes at the setup. Here you can find some screenshots.
https://www.dropbox.com/sh/9g7ownzub08y1ep/vw7Y_bT-Or#/

After i added the second addressbook (Globale Kontakte) the device-id on setting-dialog was changed automatically and only this will syncronized. And the z-push log got ~7 entrys per second and so long till stop thunderbird.

Is this a bug or a mistake by me?

Thanks a lot!

Best regards
Franky

Mark Nethersole

unread,
Dec 29, 2013, 11:35:28 AM12/29/13
to tzp...@googlegroups.com
Hi.
In Thunderbird preferences set extensions.tzpush.debugwbxml to "1" .
This will show the xml sent and recieved.
Do a manual sync and post the results.
Thanks, Mark

fymu...@gmail.com

unread,
Dec 29, 2013, 2:39:41 PM12/29/13
to tzp...@googlegroups.com

Mark Nethersole

unread,
Dec 30, 2013, 8:17:29 AM12/30/13
to tzp...@googlegroups.com
Hi 
Could you look at the error console in Thunderbird. 
Also check the permissions on the shared address book. Needs to be "at least secretary permissions".


Mark

fymu...@gmail.com

unread,
Dec 30, 2013, 10:51:12 AM12/30/13
to tzp...@googlegroups.com
Hi Mark,

yes the user has secretary permissions.

Please note:
- Sync User-Contact only -> works
- Sync Public-Contacts only -> works
- Sync User AND Public Contact -> failed

The thunderbird error console brings up a loop till end thunderbird. I don't find a option to export this full entrys, but this should be everything the same data i think.

sending : <?xml version="1.0"?><Sync xmlns="AirSync:"><Collections><Collection><Class>Contacts</Class><SyncKey>0</SyncKey><CollectionId>7425302acdb6454eaede72ee1cfec167fb0000000000</CollectionId><DeletesAsMoves/><GetChanges/><WindowSize>100</WindowSize><Options><Conflict>1</Conflict><MIMESupport>0</MIMESupport></Options></Collection></Collections></Sync>
recieved : <?xml version="1.0"?><Sync xmlns="AirSync:"><Collections><Collection><Class>Contacts</Class><CollectionId>7425302acdb6454eaede72ee1cfec167fb0000000000</CollectionId><Status>12</Status></Collection></Collections></Sync>
tzpush wbxml status : wbxml reports 12 should be 1, resyncing
sending : <?xml version="1.0"?><Sync xmlns="AirSync:"><Collections><Collection><Class>Contacts</Class><SyncKey>0</SyncKey><CollectionId>7425302acdb6454eaede72ee1cfec167fb0000000000</CollectionId><DeletesAsMoves/><GetChanges/><WindowSize>100</WindowSize><Options><Conflict>1</Conflict><MIMESupport>0</MIMESupport></Options></Collection></Collections></Sync>
recieved : <?xml version="1.0"?><Sync xmlns="AirSync:"><Collections><Collection><Class>Contacts</Class><CollectionId>7425302acdb6454eaede72ee1cfec167fb0000000000</CollectionId><Status>12</Status></Collection></Collections></Sync>
tzpush wbxml status : wbxml reports 12 should be 1, resyncing
...loop...

Best regards
Franky

Mark Nethersole

unread,
Dec 31, 2013, 8:51:50 AM12/31/13
to tzp...@googlegroups.com
Hi. 
The error "12" is caused by wrong information sent z-push. I did a set up using similar device id as you, and got the same error. Which is a good thing.

It seems to reject the long device name  1388496470430B or similar. 
Go to address book tab in tzpush right click on on the entry in addressbook mappings and delete.
Restart thunderbird. 
Enter new address book mappings.
Should work now.
Mark

Mark Nethersole

unread,
Dec 31, 2013, 10:00:50 AM12/31/13
to tzp...@googlegroups.com
Spoke to soon.
Not working. Will get back to you.

Mark Nethersole

unread,
Jan 2, 2014, 10:05:34 AM1/2/14
to tzp...@googlegroups.com
I have uploaded a new version of tzpush2.
Install and try a sync. (Settings will be carried over).
Mark

fymu...@gmail.com

unread,
Jan 3, 2014, 9:15:56 AM1/3/14
to tzp...@googlegroups.com
Hi Mark,

i tried version 2.1.2-beta and it works. Great job, thanks a lot!

Another questions (or feature request):
The public addressbook in zarafa needs minimum secretary permissions, so everyone who has access can change the contacts. Is it maybe possible to do only a one-way sync by option in your addon? (Zarafa->Thunderbird)

Best regards
Franky

Mark Nethersole

unread,
Jan 3, 2014, 11:06:28 AM1/3/14
to tzp...@googlegroups.com
What happens if you change Zafara permision to read only? I'll try this.
Otherwise I could put a download only option in. I'll look into it.
Anyway glad it now works for you.
Thanks for bug testing.
Mark

fymu...@gmail.com

unread,
Jan 3, 2014, 1:51:57 PM1/3/14
to tzp...@googlegroups.com
I tried this, but if the folder is readonly, sync will not work anymore. The folder is not showing up anymore.

If you think my suggestion is a good idea it would be great if you can realize a one-way sync. This should be a option for each adressbook i think.
If i'm the only one how want to have this, you dont need to spend much time for this ;-)

I'm happy to help you fixing a bug!

Best regards
Franky

Reply all
Reply to author
Forward
0 new messages