list_unsubscribe
Find out how to unsubscribe from a newsletter thread: see if one-click opt-out is available or get the URLs to open, all without contacting the sender.
Instructions
Report the opt-out options a thread advertises (List-Unsubscribe / RFC 8058), without contacting anyone. Reads the newest message that carries the header, so a reply threaded onto a newsletter does not hide it. oneClick means the sender supports the automatable one-click opt-out — the unsubscribe tool can perform it. httpsUrls without oneClick are links for a human to open in a browser; mailtos would require sending mail, which mailwarden never does. USE WHEN: checking whether a newsletter can be unsubscribed from, or showing the user the link to click. SIDE EFFECTS: none — no request is made to the sender.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | ||
| mailtos | Yes | ||
| subject | Yes | ||
| oneClick | Yes | ||
| threadId | Yes | ||
| httpsUrls | Yes | ||
| messageId | Yes | ||
| hasUnsubscribe | Yes |