[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 firstname.lastname@example.org gru "//?fmt=tgz&query=$query" > /tmp/test.tgz
ERROR: zclient.CLIENT_ERROR (unable to parse URI:
java.net.URISyntaxException Illegal character in query at index 87:
Without the date range parameters, the export works without an error.