Unsubscribe from a mailing list
unsubscribeRead email opt-out headers on request to check if mailmcp can send an RFC 8058 one-click POST; otherwise return the manual link. Dry run default.
Instructions
Reads unsubscribe headers. The dry run (default) says if mailmcp can send an RFC 8058 one-click POST: only if your provider verified the signer's DKIM on them and the link is on its domain; else the manual link. Only when the owner asks. Needs read (execute: unsubscribe); every plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | uid from search_messages | |
| folder | No | Default: Gmail All Mail, else INBOX | |
| account | Yes | list_accounts id | |
| confirm | No | From the dry run | |
| dry_run | No | Default true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| can_execute | Yes |