Unsubscribe (or subscribe) from a mailing list
mailbox_unsubscribeUnsubscribe from a mailing list using a message's List-Unsubscribe header, with one-click web or email options, plus optional filters to move future or existing mail from that sender.
Instructions
Unsubscribe using a message's List-Unsubscribe header: one-click web unsubscribe (RFC 8058) when offered, else an unsubscribe email, else returns the link to open in the browser. Optional cleanup: also_filter files future mail from that sender into a folder (e.g. Trash), also_move moves existing mail from that sender. action=subscribe uses List-Subscribe when present.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uid": "<uid>"
},
"name": "mailbox_unsubscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | A message from that list (mailbox_list_subscriptions gives the newest one) | |
| action | No | unsubscribe | |
| folder | No | INBOX | |
| method | No | auto | |
| also_move | No | Move existing mail from this sender to a folder, e.g. "Trash" or "Archive" | |
| also_filter | No | Create a filter sending future mail from this sender to a folder, e.g. "Trash" |