Capability: https://analytic.systems/jmap/unsubscribe
An extension to JMAP (RFC 8620 section 1.8) of the Blåmail mail service: what a message
offers for getting off the mailing list it came from (the List-Unsubscribe field,
RFC 2369; one-click unsubscription, RFC 8058), and asking for it. A client that has not named
the capability in using sees nothing of it.
The capability is in the session's capabilities object with an empty object as
its value. Each mail account has it in its accountCapabilities, with one member:
maxPerMinute: UnsignedIntArguments: accountId; ids, the ids of Emails — a hundred at most.
Response: accountId, list and notFound, as a standard
/get has them. Each object of the list has:
id: IdoneClick: BooleanList-Unsubscribe-Post: List-Unsubscribe=One-Click, and a valid DKIM
signature that covers both fields.mail: Object|nullmailto URI of the
field: to, subject, body.link: String|nullhttps URI of the field.preferred: String|null"mail" or "link": which of the two the list names first (RFC
2369 section 2: "order of preference from left to right").deliveredTo: Stringwithheld: String|null"junk" or "unauthenticated" if the message has such a field
and nothing of it is offered — asking would only confirm the address to a sender who is
not to be believed; otherwise null.unsubscribed: Boolean$unsubscribed).asked: Object|nullat (UTCDate), how
("oneClick" or "mail"), outcome
("done", "unconfirmed", "refused",
"unreachable") and status (the HTTP status the list answered
with, where it answered).Arguments: accountId, id (of an Email) and how.
With "oneClick" the server makes the request of RFC 8058 section 3.1 itself — a
POST of List-Unsubscribe=One-Click to the HTTPS URI, with no cookie,
no credentials, nothing of the person's — once the person has said so: a client calls this for
nothing else. With "mail" the client has sent the message of mail
itself, as it sends any, and has it written down.
Response: accountId, id, outcome —
"done", "unconfirmed", "refused" (with
status), "unreachable", "tooMany" (more than
maxPerMinute) or "notOffered" — and asked as above.