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