On 8/13/20 6:21 AM, w.schoener@alp.dillingen.de wrote:
So I would like to ad a link in the footer of every message, with which every receiver/member can sign out of the newsletter with one click. It does not seam to be possible, to put this into effect with mailman 3. Does anybody have any hints, how to create a link, and when this link is called, the user is signed out of the newsletter.
You can set the list's unsubscription_policy to open and set the link as a mailto: to the list-leave address, but that still requires a second click to send the mail.
The solution is to create a web based CGI script which is called with a
URL like
<https://example.com/unsub_script/list.example.com/user@example.net> and
have that script invoke the appropriate mailman
command to remove the
member from the list. Beginning with Mailman 3.3.2, this would be
mailman delmembers -l list.example.com -m user@example.net -g
to remove the member and send a goodbye message. In older Mailman, it would be something like
echo user@example.net | mailman members -x - list.example.com
I understand you may have a legal requirement do do this, but these "one-click - no user confirmation" links are a bad idea because usera will reply to a list post or forward it and not remove the link and userb will receive usera's reply and click usera's unsubscribe link either maliciously or thinking it will unsubscribe userb.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan