commit 532332b8df5dba470bfe96f95592153e303cefa3
parent a8863a750a360bad6759f5f2c4df5d2001b31e18
Author: appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com>
Date: Wed, 15 Nov 2023 18:39:23 +0000
Fix notify-send not coming through
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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.