diff --git a/local/bin/munsubscribe b/local/bin/munsubscribe new file mode 100755 index 0000000..82eeaef --- /dev/null +++ b/local/bin/munsubscribe @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -z "$*" ]; then + exec munsubscribe . +else + for url in $(mshow -qh list-unsubscribe "$@" | grep -o ']*>' | sed -e 's/^$//'); do + curl -w '%{http_code}' -s -o /dev/null "$url" + done +fi