You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2023/03/16 09:11:33 UTC
[james-project] branch master updated: JAMES-3534 Identity/set - update document (#1487)
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new 433a161781 JAMES-3534 Identity/set - update document (#1487)
433a161781 is described below
commit 433a1617818705cd14412ec073ab2fff1abd0288
Author: vttran <vt...@linagora.com>
AuthorDate: Thu Mar 16 16:11:24 2023 +0700
JAMES-3534 Identity/set - update document (#1487)
---
.../doc/specs/spec/mail/identity.mdown | 93 ++++++++++++++++++++++
1 file changed, 93 insertions(+)
diff --git a/server/protocols/jmap-rfc-8621/doc/specs/spec/mail/identity.mdown b/server/protocols/jmap-rfc-8621/doc/specs/spec/mail/identity.mdown
index 484c038f2c..cd013c6777 100644
--- a/server/protocols/jmap-rfc-8621/doc/specs/spec/mail/identity.mdown
+++ b/server/protocols/jmap-rfc-8621/doc/specs/spec/mail/identity.mdown
@@ -50,6 +50,8 @@ For **create**:
## Example
+### Get identity
+
Request:
[ "Identity/get", {
@@ -89,3 +91,94 @@ with response:
],
"notFound": []
}, "0" ]
+
+### Create a custom identity
+
+Request:
+
+ [
+ "Identity/set",
+ {
+ "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
+ "create": {"4f29": {
+ "bcc": [{
+ "name": "David",
+ "email": "david@domain.tld"
+ }],
+ "textSignature": "Some text signature",
+ "name": "Bob",
+ "replyTo": [{
+ "name": "Alice",
+ "email": "alice@domain.tld"
+ }],
+ "htmlSignature": "<p>Some html signature<\/p>",
+ "email": "bob@domain.tld"
+ }}
+ },
+ "c1"
+ ]
+
+with response:
+
+ [
+ "Identity/set",
+ {
+ "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
+ "created": {"4f29": {
+ "mayDelete": true,
+ "id": "$${json-unit.ignore}"
+ }},
+ "newState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943"
+ },
+ "c1"
+ ]
+
+### Delete a custom identity
+
+Request:
+
+ [
+ "Identity/set",
+ {
+ "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
+ "destroy": ["XD-3301-222-11_22AAz"]
+ },
+ "c1"
+ ]
+
+Response:
+
+ [
+ "Identity/set",
+ {
+ "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
+ "destroyed": ["XD-3301-222-11_22AAz"],
+ "newState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943"
+ },
+ "c1"
+ ]
+
+## Update a custom identity
+
+Request:
+
+ [
+ "Identity/set",
+ {
+ "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
+ "update": {"XD-3301-222-11_22AAz": {"name": "NewName1"}}
+ },
+ "c1"
+ ]
+
+Response:
+
+ [
+ "Identity/set",
+ {
+ "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
+ "updated": {"XD-3301-222-11_22AAz": {}},
+ "newState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943"
+ },
+ "c1"
+ ]
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org