Results 1 to 7 of 7

Thread: help with zmmailbox addMessage

  1. #1
    Join Date
    Feb 2007
    Location
    Maringá, PR, Brasil
    Posts
    67
    Rep Power
    8

    Default help with zmmailbox addMessage

    Hi,

    I'm facing an already discussed problem here in forums, but without any answers found (at least by me): I'm trying to use zmmailbox addMessage command to import messages in maildir format into a zimbra account (there is no imap). The problem is that the time/date of messages are set to the copy time/dates, and not the data from "Date:" header.

    I've already tried to put a "X-Zimbra-Received" header along with other message headers, without success.

    Any known solution?
    hugo ribeiro

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default -d <date-msec>

    Use the -d switch to zmmailbox addmessage. The date is measured in milliseconds since the epoch (1/1/1970).
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Aug 2007
    Location
    Delaware USA
    Posts
    39
    Rep Power
    8

    Default

    Quote Originally Posted by dkarp View Post
    Use the -d switch to zmmailbox addmessage. The date is measured in milliseconds since the epoch (1/1/1970).
    If you were able to acomplish this can u share your command statements with us. I am doing the same thing and dont what is the valu for <arg> on the am for for the -d switch

    Thanks

  4. #4
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    The date is measured in milliseconds since the epoch (1/1/1970).
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    Join Date
    Aug 2007
    Location
    Delaware USA
    Posts
    39
    Rep Power
    8

    Default

    I need to have X-Zimbra-Received: date not this 631170000000 on the Received Date for the email.

    Are you saying I need to script this to open each message, grep X-Zimbra-Received out and feed -d <arg> with that value?

    Not to efficient I guess

  6. #6
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    If you have the X-Zimbra-Received date already in the message header and you're adding to the Inbox, you could just use zmlmtpinject.

    Otherwise, you're stuck converting to UNIX time (perl should do this for you) and multiplying by 1000. If you'd like to see zmmailbox -d take a Date-style header, please file a bug in bugzilla and we'll try to get to it soon.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  7. #7
    Join Date
    Aug 2007
    Location
    Delaware USA
    Posts
    39
    Rep Power
    8

    Default

    Ok
    zmlmtpinject is only for Inbox so I create a filter to load into another folder. this takes care of the Recieved date issue. But all messages are shown as been not read which is not True. That is why I was trying with zmmailbox -> am cause the status of the message is the right one.
    Am i corrected on this?

Similar Threads

  1. [SOLVED] New Mailbox Filter to users from zmmailbox
    By Atauhalpa Pierrie Bulling in forum Administrators
    Replies: 4
    Last Post: 02-05-2010, 03:29 PM
  2. zmmailbox (invoke Connection refused)
    By troy in forum Administrators
    Replies: 5
    Last Post: 08-23-2007, 11:45 AM
  3. zmmailbox and spaces in folder names
    By badrian in forum Administrators
    Replies: 2
    Last Post: 06-28-2007, 12:26 PM
  4. zmmailbox command help
    By markpr in forum Administrators
    Replies: 2
    Last Post: 03-19-2007, 10:13 AM
  5. zmmailbox createfolder command options
    By shideg in forum Migration
    Replies: 3
    Last Post: 12-12-2006, 08:25 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
  •