unsubscribe from github notifications via script
This commit is contained in:
parent
1311fb6ff4
commit
e20322ef12
9
local/bin/munsubscribe
Executable file
9
local/bin/munsubscribe
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user