
* Stop ignoring pdflatex, I rarely use it anyways * Add gk and gj to iamb, and put invites first * Search with searx also in tempbrowsers * teddit is down, don't redirect to it * scale backgrounds better * put slight delay in pipewire to avoid races? * better unsubscribing from gitlab
20 lines
659 B
Bash
Executable file
20 lines
659 B
Bash
Executable file
#!/bin/sh
|
|
if [ -z "$*" ]; then
|
|
exec munsubscribe .
|
|
else
|
|
for mail in $(mseq "$@"); do
|
|
if [ -n "$(mshow -qh X-GitLab-Issue-IID)" ]; then
|
|
# if it's a gitlab mail, unsubscribe using glab
|
|
glab issue unsubscribe "$(mshow "$mail" | sed -n 's/View it on GitLab: \(.*\)/\1/p')"
|
|
elif [ -n "$(mshow -qh X-GitLab-MergeRequest-IID)" ]; then
|
|
# if it's a gitlab mail, unsubscribe using glab
|
|
glab mr unsubscribe "$(mshow "$mail" | sed -n 's/View it on GitLab: \(.*\)/\1/p')"
|
|
else
|
|
# assume it's a list email
|
|
for url in $(mshow -qh list-unsubscribe "$@" | xurls -m http); do
|
|
curl -L -w '%{http_code}' -s -o /dev/null "$url"
|
|
done
|
|
fi
|
|
done
|
|
|
|
fi
|