Results 1 to 6 of 6

Thread: Migration - Metadata

  1. #1
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    4

    Default Migration - Metadata

    I am new to Zimbra and didn't find any posts about this so please forgive me if someone has already asked this and I missed it.

    Does anyone know if the metadata of the emails is maintained when migrating to the Zimbra platform? (i.e. Date/Time of the emails sent/received, and maintaining the "To", "From", "cc", "bcc" and "subject" fields).

    Thanks

  2. #2
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    Most of that is retained when you migrate using imapsync, or other imap related sync methods.

    BCC is not an actual header, so that will not be retained, but the rest should be there.
    01 Networks, LLC / Cybernetik.net
    Zimbra NE and OSS Cloud Hosting
    Shared Web Hosting
    Consulting Services

  3. #3
    Join Date
    Apr 2011
    Posts
    5
    Rep Power
    4

    Default

    I'd like to follow up on the question of metadata, specifically the Seen flag.

    You can use IMAP to get the status flags but unfortunately IMAP is not an option in the project I am working on. (Our users's passwords are encrypted so my IMAP script can't log into their Zimbra accounts).

    I'm using the REST command zmmailbox -z -m <user> getRestURL '//?fmt=zip&query=is:anywhere' to extract mailboxes but I don't see any way to obtain the flags with that command. I read that you can use 'http://localhost/home/<user>/?id=<id>&fmt=sync' to get the metadata on a per-message basis but as far as I can tell there is no way to correlate that info with the messages extracted with zmmailbox.

    Is there a way to get the flags for exported messages?

    Thanks,
    Richard

  4. #4
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    The GetRestURL command extracts all of the metadata as well. If you look at the .tgz or .zip file it creates, there is a .meta file for each email, and "unread" is one of the flags (which corresponds to the IMAP "seen" flag).

    On the IMAP note, one thing you can do is extract the crypted password from the previously mentioned commands, set the password to a generic one that your script is aware of to access the account with IMAP, and then reset it back to the crypted password when the IMAP process is complete.
    01 Networks, LLC / Cybernetik.net
    Zimbra NE and OSS Cloud Hosting
    Shared Web Hosting
    Consulting Services

  5. #5
    Join Date
    Apr 2011
    Posts
    5
    Rep Power
    4

    Default

    > The GetRestURL command extracts all of the metadata as well. If you look at the .tgz or .zip file it creates, there is a .meta file for each email

    Hmm, for some reason I didn't get any .meta files when I unzipped the output file, just *.eml messge files.

    ls -al
    total 56
    drwxr-x--- 2 zimbra zimbra 4096 Apr 14 09:17 .
    drwxr-x--- 5 zimbra zimbra 4096 Apr 14 09:15 ..
    -rw-rw---- 1 zimbra zimbra 1277 Apr 13 11:27 Service mailbox.eml
    -rw-rw---- 1 zimbra zimbra 1259 Apr 13 11:27 Service mailbox stoppep.eml
    -rw-rw---- 1 zimbra zimbra 1261 Apr 13 11:27 Service mailboxd started.eml

    > set the password to a generic one that your script is aware of to access [...] and then reset it back to the crypted password.

    Good idea, that didn't occur to me. :-(

    Any idea why the .meta files didn't get written?

    -Rick

  6. #6
    Join Date
    Apr 2011
    Posts
    5
    Rep Power
    4

    Default

    > for some reason I didn't get any .meta files when I unzipped the output file, just *.eml messge files. Any idea why the .meta files didn't get written?

    To answer my own question, the .meta files _were_ exported when I specified 'fmt=tgz' instead of 'fmt=zip'.

    -Rick

Similar Threads

  1. Replies: 10
    Last Post: 10-29-2009, 09:56 PM
  2. [SOLVED] Mail.app POP3 migration to ZCS
    By jpbuse in forum Migration
    Replies: 6
    Last Post: 04-23-2008, 03:38 PM
  3. [SOLVED] GroupWise 7.0.2 migration
    By Rich Graves in forum Migration
    Replies: 28
    Last Post: 04-17-2008, 05:13 PM
  4. Migration Wizard: Unable to Open Directory Object
    By ThorGoLucky in forum Administrators
    Replies: 15
    Last Post: 01-31-2008, 02:01 AM
  5. My migration from GroupWise - any suggestions?
    By stuartg.orion in forum Migration
    Replies: 3
    Last Post: 06-11-2007, 06:34 PM

Posting Permissions

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