Preserving Original Date when Importing EML Archive: Difference between revisions

(Created page with 'By default, when '''ZCS''' imports a EML archive file, it will take the date modified in the .eml file properties instead of the original '''Date''' on the message header. This i…')
 
No edit summary
Line 25: Line 25:


--[[User:Fmarques|Fmarques]] 13:27, 13 July 2010 (UTC)
--[[User:Fmarques|Fmarques]] 13:27, 13 July 2010 (UTC)
[[Category: Community Sandbox]]
[[Category:Migration]]

Revision as of 15:15, 13 July 2010

By default, when ZCS imports a EML archive file, it will take the date modified in the .eml file properties instead of the original Date on the message header. This issue has already been raised with bug 39838:

http://bugzilla.zimbra.com/show_bug.cgi?id=39838

This is the expected behavior. Starting with ZCS 6.0.0, there is a new option to import a EML archive and preserve the original timestamp from each message. More information can be found by reading the REST API concept guide located at /opt/zimbra/docs/rest.txt (Upload options).

   timestamp=0 do not use the archive entry date as the received
   date for msgs or the creation date for documents. Msg dates
   will be inferred from the Date header if available

Since this feature has not been implemented on the UI, we have to manually call the REST API from the command line.

Example:

  • Copy your .zip EML archive file containing the eml archives to the zcs server (make sure you choose a temporary directory with plenty of enough space).
  • Import your .zip EML archive file using the following command:
   zmmailbox -d -z -m user@domain.com postRestURL "inbox?fmt=zip&timestamp=0&subfolder=/EML" /tmp/Eml-archive.zip

It will import the /tmp/Eml-archive.zip file into user@domain.com EML subfolder, preserving the original timestamps.

More information on the REST API can be found at the ZCS_6.0:Zimbra_REST_API_Reference guide.


--Fmarques 13:27, 13 July 2010 (UTC)

Jump to: navigation, search