Would your script work on ANY imported account? I just did a pretty large migration for an individual client the other day. Apparently he is seeing some old emails from 2006 show up with the received timestamp of the date of the import. It's not consistent across his account, it's only on some emails.
I did not use IMAPSync for the import. I used the Outlook Import Wizard. However, his mail was originally in Outlook Express. I first imported to Outlook, then from Outlook to Zimbra. I haven't had access to his machine since the import, so I can't 100% tell for sure if the timestamp issue was introduced between OE and Outlook, or between Outlook and Zimbra.
I would appreciate any comments/ideas you might have.
Thanks in advance!