Results 1 to 3 of 3

Thread: [SOLVED] zmmailbox to export emails by date

  1. #1
    Join Date
    Feb 2010
    Posts
    6
    Rep Power
    5

    Default [SOLVED] zmmailbox to export emails by date

    I'm trying to export emails from a mailbox by date, but keep getting the below error. It appears that the ":" character in the query variable is causing the issue. Any idea how to properly format the date for this query?

    [zimbra@mail ~]$ query='before:"1/27/2010" after:"5/29/2009"'
    [zimbra@mail ~]$ zmmailbox -z -m test@testtest.com gru "//?fmt=tgz&query=$query" > /tmp/test.tgz

    ERROR: zclient.CLIENT_ERROR (unable to parse URI:
    https://mail.testtest.com:7071/service/admin/soap/) (cause:
    java.net.URISyntaxException Illegal character in query at index 87:
    https://mail.testtest.com:443/home/test@testtest.com/?fmt=zip&query=before:"1/27/2010"
    after:"5/29/2009")

    Without the date range parameters, the export works without an error.

    Regards,
    ~john
    Last edited by John Kim; 02-09-2010 at 02:56 PM.

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Code:
    query='before:1/27/2010 after:5/29/2009'
    works okay.

  3. #3
    Join Date
    Feb 2010
    Posts
    6
    Rep Power
    5

    Default

    Thanks for the reply. It appears that the below does work on version 6, but not for my version (5.016).

    Quote Originally Posted by uxbod View Post
    Code:
    query='before:1/27/2010 after:5/29/2009'
    works okay.
    I had to replace the space with the" %20" and now it works.

    Code:
    query='before:1/27/2010%20after:5/29/2009'

Similar Threads

  1. [SOLVED] my server stopped working???
    By cecil in forum Administrators
    Replies: 4
    Last Post: 04-20-2008, 09:07 AM
  2. installation error during ldap setup
    By ljramos in forum Installation
    Replies: 23
    Last Post: 08-10-2007, 11:48 PM
  3. unable to restart zimbra after reboot
    By droefs in forum Administrators
    Replies: 28
    Last Post: 04-16-2006, 03:33 PM
  4. Replies: 16
    Last Post: 01-05-2006, 09:55 AM
  5. After Succesfull Install, Cannot Start mta
    By bsimzer in forum Installation
    Replies: 26
    Last Post: 12-16-2005, 05:45 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
  •