Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > ZCS Client Connectors > Zimbra Connector for Outlook

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 10-12-2008, 07:48 PM
Intermediate Member
 
Posts: 20
Default [OC Received Time bug]Incorrect timestamp stored in database

Problems:
Upload Emails using Outlook connector will make some email shown incorrect timestamp, mis-use of upload time as received timestamp, especially in Index folder

Reason:
In Zimbra's MySql database, the `date` field in mboxgroup$USER_ID has incorrect timestamp, it presuming that the Email is received at the time of the upload

Solution:
To replace `date` field using the time listed in "Date: " header of the email; Attached a script to fix the issue

Version happen:
Outlook 2003 + ZCS Network 5.0.7 + Connector 2.07_GA_2450_5.0.2661.7.msi

How to reproduce:
1. upload your mails by moving mail from other pst file in Outlook (using connector! not pst import wizard!)
2. wait until it has fully synchronized with the server
3. delete the whole profile and data file of zimbra
4. rebuild zimbra's profile
5. redownload and see, mails should have incorrect timestamp


Usage of the fix script:
./fixtimestamp.sh <your_user's_name>

It will parse all email in your user's store and then get the date, build the timestamp and store in mysql
Attached Files
File Type: zip fixtimestamp.zip (1.7 KB, 20 views)
__________________
I can provide custom solution for Zimbra to Zimbra migration.

Move your mailboxes individually or just item inside each mailbox
Reply With Quote
  #2 (permalink)  
Old 10-13-2008, 06:40 PM
Junior Member
 
Posts: 5
Default

Line 20 uses -s in the date command which sets the time on the machine... changing this to -d puts the result of the date command in the var as neede without changing the system date.
Reply With Quote
  #3 (permalink)  
Old 10-13-2008, 07:34 PM
Intermediate Member
 
Posts: 20
Default Confirmed mistake

Confirmed that it is an issue, I have NTP running every 5 minutes in my machine, no wonder I found no problems (as it corrects the time itself!)

Attached version 0.02
Attached Files
File Type: zip fixtimestamp.zip (1.7 KB, 21 views)
__________________
I can provide custom solution for Zimbra to Zimbra migration.

Move your mailboxes individually or just item inside each mailbox

Last edited by hinyinlam; 10-13-2008 at 07:35 PM.. Reason: grammar
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.