diff --git a/tools/unsubscribe b/tools/unsubscribe new file mode 100755 index 0000000000000000000000000000000000000000..5368eb38c221911c6f7148c917284a304a3cc442 --- /dev/null +++ b/tools/unsubscribe @@ -0,0 +1,9 @@ +#!/bin/bash +# unsubscribe - removes an address from a list +# NOTE: this script requires the current user has read access to the db + +echo "removing $1 from $2:" + +# remove all list subscriptions +mysql --batch --database=sympa --execute "delete from subscriber_table where use +r_subscriber='${1}' AND list_subscriber='${2}'"