Zimbra REST API: Mailbox Methods | Zimbra

Document
Alert! This article is written for Zimbra OSE users. As of December 2023, Synacor will no longer be providing support for Zimbra OSE. You might want to consider trying out Carbonio Community Edition – Zextras’s free and open-source email and collaboration platform.

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, use meta=1. To not include them, use meta=0. If you don’t set this parameter, the default value is meta=1 when you use tar or tgz as response format, while is meta=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
Download Zextras Suite for Zimbra OSE

Post your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Zimbra Rest API | Zimbra
Zimbra REST API: Address Book Methods | Zimbra