Results 1 to 7 of 7

Thread: Zimbra and Contacts

  1. #1
    bravedreamer is offline Intermediate Member
    Join Date
    May 2008
    Posts
    24
    Rep Power
    6

    Default Zimbra and Contacts

    Hi

    I'm interested in reading out the data of Zimbra and do some synchronization (Exchange and Zimbra). For the moment, I just want to read out the contacts. I use as basis a connector which connects Zimbra and Funambol. The whole communication with Zimbra is just solved within this connector. So I don't have to think about.

    The general retrieve of the contacts works perfect. It seems only that there is something wrong with the creation date. If I create a contact and modify it later on, the creation date is the same as the modification date.

    Therefore my question: when I change a contact information in Zimbra, does Zimbra deletes the contact and reallocates a new one??

    thanks for your help.

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    Quote Originally Posted by bravedreamer View Post
    The general retrieve of the contacts works perfect. It seems only that there is something wrong with the creation date. If I create a contact and modify it later on, the creation date is the same as the modification date.

    Therefore my question: when I change a contact information in Zimbra, does Zimbra deletes the contact and reallocates a new one??
    Zimbra doesn't track creation date, just the time the contact's fields were last modified.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    bravedreamer is offline Intermediate Member
    Join Date
    May 2008
    Posts
    24
    Rep Power
    6

    Default

    Hmmm... okay. This would explain my results.

    Just to confirm: a normal contact received via SOAP would look similar to this one

    <cn d='1207217689000'
    ms='332269'
    md='1207217689'
    f=''
    t=''
    fileAsStr='Blabla, blabla'
    l='7'
    id='7980'
    rev='332269'>
    <a n='firstName'>Blabla</a>
    <a n='lastName'>blabla</a>
    </cn>

    An now, Zimbra sets both dates (md and d) to the same value!?! What is the reason for that bahavior?

    Because I would be interested in those contacts that were change since a certain point in time...

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    'd' is the date the content of the contact was last changed. Change the firstName, the company, etc. and 'd' will change.

    'md' is the date that the metadata on the contact was last changed. Move the contact, tag it, etc. and 'md' will change. (Note that a content change also qualifies as a metadata change.)

    Please see ZimbraServer/docs/soap.txt for more details on this. And see ZimbraServer/docs/sync.txt for Zimbra's built-in sync infrastructure.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    gambo is offline Active Member
    Join Date
    Sep 2008
    Posts
    25
    Rep Power
    6

    Default

    Quote Originally Posted by dkarp View Post
    'd' is the date the content of the contact was last changed. Change the firstName, the company, etc. and 'd' will change.
    How can i get the d value from an LmcContact object?

  6. #6
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    Please use ZMailbox instead of LmcContact.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  7. #7
    gambo is offline Active Member
    Join Date
    Sep 2008
    Posts
    25
    Rep Power
    6

    Default

    I solved adding MailConstants.A_MODIFIED_DATE to LmcContact

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra and Exchange coexistence.
    By kajetan in forum Migration
    Replies: 10
    Last Post: 10-13-2010, 04:01 AM
  2. Useful, actual migration from Entourage to Zimbra - How?
    By greggfathead in forum CalDAV / CardDAV / iSync
    Replies: 5
    Last Post: 05-19-2008, 03:05 PM
  3. Replies: 12
    Last Post: 05-03-2008, 11:44 AM
  4. Zimbra + E62 Observations
    By mjfleck2000 in forum Users
    Replies: 9
    Last Post: 01-02-2007, 11:02 AM
  5. vbscript to convert Thunderbird contacts
    By zzzzsg in forum Administrators
    Replies: 0
    Last Post: 05-04-2006, 02:00 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
  •