I don't have here my computer but i was using the last release (it has the automatic update) of zimbra desktop; i am using this zimbra server release (zcs-5.0.9_GA_2533.RHEL5.20080815132719).
When I import the messages, all of them have the date and time when they are imported.
I try to explain you better what happens; i have my account on the server and I have the zimbra desktop fully synchronized. I have deleted my account on the server, and I create it again from scratch. My zimbra desktop had all the messages but not the server; so I exported the messages and imported them again; importing them, the server was synchronized back with all the messages, but with the date and time of the import.
I have noticed that the messages on the storage directory has the correct date and time, but the mysql entry was wrong. So I wrote a small php program that scans all the mysql database for entries of type 5, find the file on the storage, read the "Date:" row, and updates the entry on mysql... so now I have my messages with the correct date.
But i guess that there is a simplest way to restore all the messages from zimbra desktop to zimbra server
Thanks in advance, Fabrizio Cuseo