[SOLVED] Import ZIP mailbox via Terminal = Wrong dates
I´m trying to import user mailboxes from the terminal but I always get the wrong dates in the mail messages (all dates get the date the import was, not the mail message header date).
Here is what I do:
1) Export a users mailbox when logged into his web client:
Code:
http://mydomain.com/user/username@mydomain.com/?fmt=zip&query=is:anywhere
2) Move the ZIP to the new Zimbra server
3) Import the users mailbox from the Servers terminal with:
Code:
zmmailbox -z -m username@mydomain2.com postRestURL “//?fmt=zip&resolve=reset” /tmp/username_domain.zip
I tried the adding "/tb" to the username to try fixing the dates but it was not recognized by the server (no such account).
Any ideas to fix the dates/time stamp?
** Edit **
I also tried CURL with the same results... wrong dates:
Code:
curl -k -u admin:password --data-binary @/tmp/username_domain.zip "https://mydomain2.com:7071/home/username@domain.com/?fmt=zip&resolve=skip"
Running on Zimbra 6.0.8_GA_2261.FOSS