Results 1 to 2 of 2

Thread: [SOLVED] Import ZIP mailbox via Terminal = Wrong dates

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    4

    Default [SOLVED] Import ZIP mailbox via Terminal = Wrong dates

    Im 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

  2. #2
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    4

    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

Similar Threads

  1. Wrong dates in Zimbra Webmail
    By voltcraft in forum Migration
    Replies: 11
    Last Post: 06-08-2009, 03:12 AM
  2. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 05:53 PM
  3. ical4j.data.ParserException
    By amit_saini54 in forum Migration
    Replies: 0
    Last Post: 12-06-2007, 06:45 AM
  4. Dates after import
    By Nutz in forum Migration
    Replies: 3
    Last Post: 04-05-2007, 05:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •