For additional guidance, check out our community articles detailing the process of migrating from your current platform to Carbonio CE.
For enterprise-level requirements and advanced features, consider checking out Zextras Carbonio – the all-in-one private digital workplace designed for digital sovereignty trusted by the public sector, telcos, and regulated industries.
In this article we are going to analyze the Mailbox methods of the Zimbra REST API. For an overview and in-depth coverage about it, we refer you to the related article in our technical blog.
Export Mailbox
This method exports the entire content of a mailbox. The HTTP method to read data is get.
The basic URL structure is the following one:
http(s)://<host>/home/sample.user/?{query-parameters}
Formats
Supported formats for this method are zip, tar, tgz
Parameters
There are different parameters you can add to the URL of this method:
fmt
– the response format is required.query
– the query string is optional.meta
– meta files inclusion is optional. If you want to include them, usemeta=1
. To not include them, usemeta=0
. If you don’t set this parameter, the default value ismeta=1
when you use tar or tgz as response format, while ismeta=0
if you choose zip format.
Examples
If you want to retrieve the entire mailbox for “james.red” as Compressed TAR format:
https://mail.sampledomain.com/home/james.red/?fmt=tgz&query=is:anywhere 2
If you want to retrieve the “sent” content (sent folder + all sub-folders) for “james.red” in ZIP format:
https://mail.sampledomain.com/home/james.red/?fmt=zip&meta=1&query=under:sent