-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISSUE-1468 [DOC] JMAP Download All custom extension (#1485)
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
docs/modules/ROOT/pages/tmail-backend/jmap-extensions/downloadAll.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
= JMAP Download All | ||
:navtitle: JMAP Download All | ||
|
||
This extension allows users, when reading an email, to download all attachments at once. The attachments are being compressed | ||
and delivered to the user in a zip file. | ||
|
||
== Additions to the capability object | ||
|
||
Servers supporting the JMAP Download All extension need to advertise it through the session capabilities: | ||
.... | ||
com:linagora:params:downloadAll | ||
.... | ||
|
||
The capability needs to advertise the following specified download all attachments route. | ||
|
||
== Specification | ||
|
||
The JMAP Download All extension is defined by a new JMAP route following this pattern: | ||
|
||
.... | ||
GET /jmap/downloadAll/{accountId}/{emailId}?name={name} | ||
.... | ||
|
||
Where: | ||
|
||
- `accountId`: *String*. The user account id. | ||
- `emailId`: *String*. The email id to download all attachments from. | ||
- `name`: *String*. The name of the zip file. | ||
|
||
It returns all attachments of that email compressed into a zip file. | ||
|
||
Error codes: | ||
|
||
- `401`: no rights to access the mail and its attachments | ||
- `404`: email not found or no attachments present in the email | ||
|
||
Notes: | ||
|
||
- When multiple files have the same name, we only keep and return the latest one in the zip file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters