Browse Source

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%
pull/1003/head
Yaroslav Chvanov 3 months ago
parent
commit
824feedc68
No known key found for this signature in database GPG Key ID: CCF75EB2BBF8F69C
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync View File

@@ -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


Loading…
Cancel
Save