From ea5c81fb5c45d75528de81b91019af58782e2d91 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 10 Jan 2020 22:55:30 +0000 Subject: examples/unsubscribe.milter: support unique mailto: Instead of providing a generic "mailto:foo+unsubscribe@example.com" address in List-Unsubscribe which requires confirmation, replace it with a mailto: header with a unique subject which contains the same unique ID we put in the https:// URL. This makes it easier for some MUAs without https:// support to unsubscribe with a single action via the List-Unsubscribe header. --- examples/unsubscribe-milter@.service | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/unsubscribe-milter@.service') diff --git a/examples/unsubscribe-milter@.service b/examples/unsubscribe-milter@.service index 98e3d478..eb5dcbe4 100644 --- a/examples/unsubscribe-milter@.service +++ b/examples/unsubscribe-milter@.service @@ -14,6 +14,12 @@ After = unsubscribe-milter.socket # copy+paste errors # umask 077 && dd if=/dev/urandom bs=16 count=1 of=.unsubscribe.key ExecStart = /usr/local/sbin/unsubscribe.milter /home/mlmmj/.unsubscribe.key + +# UNIQUE_MAILTO makes the List-Unsubscribe mailto: header unique +# so unsubcribing becomes one-step (requires MDA/MTA configuration, +# see the bottom of examples/unsubscribe.milter +# Environment = UNIQUE_MAILTO=1 + Sockets = unsubscribe-milter.socket # the corresponding PSGI app needs permissions to modify the -- cgit v1.2.3-24-ge0c7