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

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 Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-2008, 06:05 AM
Intermediate Member
 
Posts: 24
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.
Reply With Quote
  #2 (permalink)  
Old 06-26-2008, 08:11 AM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #3 (permalink)  
Old 06-26-2008, 08:33 AM
Intermediate Member
 
Posts: 24
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...
Reply With Quote
  #4 (permalink)  
Old 06-26-2008, 12:23 PM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #5 (permalink)  
Old 10-07-2008, 05:12 AM
Active Member
 
Posts: 25
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?
Reply With Quote
  #6 (permalink)  
Old 10-07-2008, 08:00 AM
Zimbra Employee
 
Posts: 1,434
Default

Please use ZMailbox instead of LmcContact.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #7 (permalink)  
Old 10-07-2008, 08:35 AM
Active Member
 
Posts: 25
Default

I solved adding MailConstants.A_MODIFIED_DATE to LmcContact
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.