Unsubscribes users from Panoptes email lists. Takes input from stdin, one
unsubcription per line, in the format:
Invalid lines are ignored. Unsubscriptions are grouped per list, so it only does
one query per list. Project slugs should not include the username as these
aren't preserved in Mailman; i.e. "galaxy-zoo", not "zooniverse/galaxy-zoo".
This does mean users will be unsubscribed from projects which happen to have the
same name, but this is an acceptible compromise for now since the UI for
managing subscriptions in PFE confuses these anyway.
echo """ announcements email@example.com beta firstname.lastname@example.org beta email@example.com my-project-slug firstname.lastname@example.org """ | \ docker run -i --rm \ -v /path/to/database.yml:/database.yml \ zoniverse/panoptes-email-unsubscribe