configuration/local/bin/munsubscribe
2021-08-23 09:54:41 +02:00

9 lines
184 B
Bash
Executable File

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