Results 1 to 2 of 2

Thread: REST Interface - imported mails do not have correct timestamp

  1. #1
    Join Date
    Sep 2005
    Posts
    14
    Rep Power
    10

    Default REST Interface - imported mails do not have correct timestamp

    I have tried to import .eml files using the REST interface (example as follows)

    Code:
    omain.com:password --upload-file /opt/zimbra/test/A http://server//home/user@domain.com/inbox
    It works except that the "received" timestamp show the import time rather that the actual time in the mail. Is there any trick that the timestamp can be set to the actual date-time when the mails were first received?

  2. #2
    Join Date
    Sep 2005
    Posts
    14
    Rep Power
    10

    Default X-Zimbra-Received

    I figured out that adding the X-Zimbra-Received to the mail headers in the eml file will fix the problem.

    I used the following sed to add the X-Zimbra-Received. It replicates the Date line in the message and replace the Date with X-Zimbra-Received.

    Code:
    sed 's/\(^Date\:\)\(.*\)/X-Zimbra-Received\:\2\n\1\2/' <infile> > <newfile>

Similar Threads

  1. REST Interface for Tasks
    By SPremeau in forum Migration
    Replies: 4
    Last Post: 10-24-2007, 07:44 AM
  2. Replies: 1
    Last Post: 06-21-2007, 06:13 AM
  3. Howto update contacts using REST interface?
    By tigger in forum Administrators
    Replies: 0
    Last Post: 05-23-2007, 04:26 AM
  4. Get inbox count via rest or soap interface
    By Dirk in forum Developers
    Replies: 10
    Last Post: 03-22-2007, 08:51 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
  •