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

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 03-23-2011, 07:53 AM
New Member
 
Posts: 3
Default [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

Last edited by skuliaxe; 03-23-2011 at 08:05 AM.. Reason: Added details
Reply With Quote
  #2 (permalink)  
Old 03-23-2011, 02:25 PM
New Member
 
Posts: 3
Default

SOLVED

With zmmailbox I found that I had to add "timestamp=0"
Code:
zmmailbox -z -m user@domain.com postRestURL "//?fmt=zip&timestamp=0&resolve=reset" /tmp/user_domain.zip
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.