Browse Source

Fix notify-send not coming through

pull/967/head
appeasementPolitik 1 year ago
committed by GitHub
parent
commit
532332b8df
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bin/mailsync

+ 2
- 2
bin/mailsync View File

@@ -63,11 +63,11 @@ syncandnotify() {
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
case 1 in
$((newcount > 5)) )
echo "$newcount new mail for $2."
echo "$newcount new mail for $2." >/dev/tty
[ -z "$MAILSYNC_MUTE" ] && notify "New Mail!" "📬 $newcount new mail(s) in \`$2\` account."
;;
$((newcount > 0)) )
echo "$newcount new mail for $2."
echo "$newcount new mail for $2." >/dev/tty
[ -z "$MAILSYNC_MUTE" ] &&
for file in $new; do
# Extract and decode subject and sender from mail.


Loading…
Cancel
Save