Unsubscribe
mail_unsubscribeUnsubscribe from a mailing list using RFC 8058 one-click, email, or browser fallback based on the message's List-Unsubscribe header. Provide the message ID to initiate removal without deleting the email.
Instructions
Try to unsubscribe from the mailing list of a message, in order: (1) RFC 8058 one-click HTTPS POST, (2) automatic email to the List-Unsubscribe mailto address, (3) otherwise returns method: "browser" with the URL to open in a browser to finish manually, (4) method: "none" when no header exists. Deletes nothing. Preferably pass the lastMessageId returned by mail_senders_summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of a representative message of the newsletter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| url | No | ||
| from | Yes | ||
| detail | Yes | ||
| mailto | No | ||
| method | Yes | ||
| subject | Yes |