blob: ae8d9d9d301763d42d276b8bf1d9961972e11cfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
#
# $1 Message ID to toggle tag on
if [[ "$(notmuch search id:$1 and tag:learn-spam)" ]]; then
printf "unsetting tag learn-spam from message %s\n" "$1"
notmuch tag -learn-spam +inbox id:"$1"
else
printf "setting tag learn-spam from message %s\n" "$1"
notmuch tag +learn-spam -inbox id:"$1"
fi
|