]> Sergey Matveev's repositories - public-inbox.git/commit
unsubscribe: get off mah lawn^H^H^Hist
authorEric Wong <e@80x24.org>
Wed, 18 May 2016 01:23:05 +0000 (01:23 +0000)
committerEric Wong <e@80x24.org>
Fri, 20 May 2016 21:33:56 +0000 (21:33 +0000)
commit1f29b33d3f71b8a40f5ae76bf20b95618b518654
tree974ac5d70d601a454b92bf824e03e8f23b6c6daa
parentd6cdb106f27abed5d05da035c95e106939fbe3b2
unsubscribe: get off mah lawn^H^H^Hist

While public-inbox is intended primarily for archival,
SMTP list subscriptions are still in use in most places
and users are likely to want a good unsubscribe mechanism.

HTTP (or HTTPS) links in the List-Unsubscribe header are
often preferable since some users may use an incorrect
email address for mailto: links.

Thus, it is useful to provide an example which generates an
HTTPS link for users to click on.  The default .psgi requires
a POST confirmation (as destructive actions with GET are
considered bad practice).  However, the "confirm" parameter
may be disabled for a true "one-click" unsubscribe.

The generated URLs are hopefully short enough and both shell
and highlighting-friendly to reduce copy+paste errors.
examples/README.unsubscribe [new file with mode: 0644]
examples/unsubscribe-milter.socket [new file with mode: 0644]
examples/unsubscribe-milter@.service [new file with mode: 0644]
examples/unsubscribe-psgi.socket [new file with mode: 0644]
examples/unsubscribe-psgi@.service [new file with mode: 0644]
examples/unsubscribe.milter [new file with mode: 0644]
examples/unsubscribe.psgi [new file with mode: 0644]
lib/PublicInbox/Unsubscribe.pm [new file with mode: 0644]