From 824feedc6889ae9630891c9b75e83b5387896838 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Wed, 18 Sep 2024 22:29:55 +0300 Subject: [PATCH] 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% --- bin/mailsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mailsync b/bin/mailsync index cbd36ff..866859e 100755 --- 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