10 lines
220 B
Plaintext
10 lines
220 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
if [ -z "$*" ]; then
|
||
|
exec munsubscribe .
|
||
|
else
|
||
|
for url in $(mshow -qh list-unsubscribe "$@" | grep -o '<http[^>]*>' | sed -e 's/^<//' -e 's/>$//'); do
|
||
|
curl -w '%{http_code}' -s -o /dev/null "$url"
|
||
|
done
|
||
|
fi
|