This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch WW-4173-disable in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/WW-4173-disable by this push: new 1b1d06061 Adds helper to prepare unsubscribe email 1b1d06061 is described below commit 1b1d06061e709b8fe39eccdb9bfc81c7eb9f8555 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Wed Oct 26 09:30:32 2022 +0200 Adds helper to prepare unsubscribe email --- source/mail.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/mail.md b/source/mail.md index b525684ff..0168fd126 100644 --- a/source/mail.md +++ b/source/mail.md @@ -43,6 +43,25 @@ to unsubscribe someone you can email: {listname}-unsubscribe-badboy=menace....@tlp.apache.org ``` +### Unsubscribe from the Users mailing list + +<script> +function generate(form) { + var badBoy=form[0]; + var email = 'user-unsubscribe-' + badBoy.value.replace('@', '=') + '@struts.apache.org'; + var link = document.getElementById('ready-email'); + link.style.visibility = 'visible'; + link.href = 'mailto:' + email; +} +</script> + +<form action="javascript: void(0);"> + <label for="bad-boy">Paste user email address</label> + <input id="bad-boy" type="text"/> + <input type="button" value="Generate" onclick="generate(this.form)"> + <div><a style="visibility: hidden" id="ready-email" href="#">Unsubscribe</a></div> +</form> + ## Guidelines Mailing lists provide a simple and effective communication mechanism. With potentially thousands of subscribers, there