add munsubscribe script
This commit is contained in:
parent
26372f06a0
commit
95287881c3
@ -1,9 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -z "$*" ]; then
|
if [ -z "$*" ]; then
|
||||||
exec munsubscribe .
|
exec munsubscribe .
|
||||||
else
|
else
|
||||||
for url in $(mshow -qh list-unsubscribe "$@" | grep -o '<http[^>]*>' | sed -e 's/^<//' -e 's/>$//'); do
|
for url in $(mshow -qh list-unsubscribe "$@" | xurls -m http); do
|
||||||
curl -w '%{http_code}' -s -o /dev/null "$url"
|
curl -L -w '%{http_code}' -s -o /dev/null "$url"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user