diff options
author | appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> | 2023-11-15 18:39:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 18:39:23 +0000 |
commit | 532332b8df5dba470bfe96f95592153e303cefa3 (patch) | |
tree | 68306f496ff38c2212356d011bac2e6bdd462eb6 /bin | |
parent | a8863a750a360bad6759f5f2c4df5d2001b31e18 (diff) |
Fix notify-send not coming through
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mailsync | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mailsync b/bin/mailsync index cbd36ff..1d403d6 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -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. |