25 Feb
2022
25 Feb
'22
2:21 a.m.
I have this working:
#!/bin/bash H="http://lists.mysite.org/admin.cgi/newsletter-mysite.org/members" case $1 in 'add') curl "$H/add?subscribees=$2&adminpw=verysecret" ;; 'del') curl "$H/del?subscribees=$2&adminpw=verysecret" ;; esac
and scan the return for "Successfully [Un]subscribed"