about summary refs log tree commit homepage
path: root/examples/unsubscribe-milter@.service
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-10 22:55:30 +0000
committerEric Wong <e@yhbt.net>2020-01-12 21:27:52 +0000
commitea5c81fb5c45d75528de81b91019af58782e2d91 (patch)
tree4baf150edcb1d5200d23a8e1df1f43d1ec8e244f /examples/unsubscribe-milter@.service
parentda0eeb321433b70819dd417afcaf1ac86e1da5df (diff)
downloadpublic-inbox-ea5c81fb5c45d75528de81b91019af58782e2d91.tar.gz
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.
Diffstat (limited to 'examples/unsubscribe-milter@.service')
-rw-r--r--examples/unsubscribe-milter@.service6
1 files changed, 6 insertions, 0 deletions
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