commit 824feedc6889ae9630891c9b75e83b5387896838
parent 7129fa0597f3f365459de51c560c9d5c68bbd707
Author: Yaroslav Chvanov <yaroslav.chvanov@gmail.com>
Date: Wed, 18 Sep 2024 22:29:55 +0300
fix(mailsync): delimit notification text from flags
Fixes text being interpreted as flags when it starts with a dash.
Try sending yourself a letter with subject starting with '-'.
E.g. if subject is '-10%' fixes error:
> Unknown option -10%
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/mailsync b/bin/mailsync
@@ -45,7 +45,7 @@ case "$(uname)" in
notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do
export DISPLAY="$x"
- notify-send --app-name="mutt-wizard" "$1" "$2"
+ notify-send --app-name="mutt-wizard" -- "$1" "$2"
done ;}
;;
esac