configuration/local/bin/munsubscribe

9 lines
184 B
Plaintext
Raw Normal View History

#!/bin/sh
if [ -z "$*" ]; then
exec munsubscribe .
else
2021-08-23 09:54:41 +02:00
for url in $(mshow -qh list-unsubscribe "$@" | xurls -m http); do
curl -L -w '%{http_code}' -s -o /dev/null "$url"
done
fi