Documentation
¶
Overview ¶
Package unsubscribe works out how a list message can be left and sends RFC 8058 one-click requests (ADR-0027): an HTTPS POST that carries nothing of the user's and never reaches the user's own network.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Methods []Method // best first; none when the message offers nothing
URL string // the https: URI, for OneClick and Web
Host string // URL's host
Address string // the mailto: address
Subject string // the mailto: URI's subject; "unsubscribe" when it has none
Body string // the mailto: URI's body
}
Info is what a message's headers offer.
type Poster ¶
type Poster struct {
// contains filtered or unexported fields
}
Poster sends one-click requests.
func New ¶
func New() *Poster
New is a Poster that refuses every address inside the user's network. The check is lodge kit's netguard (ADR-0017 there), shared with the other apps: it refuses loopback, private, link-local, multicast, unspecified, shared (RFC 6598), the IETF protocol block, benchmarking, the reserved block, the documentation ranges, NAT64, Teredo, 6to4 and site-local, and it runs on each address after DNS.