summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorappeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com>2023-11-15 18:39:23 +0000
committerGitHub <noreply@github.com>2023-11-15 18:39:23 +0000
commit532332b8df5dba470bfe96f95592153e303cefa3 (patch)
tree68306f496ff38c2212356d011bac2e6bdd462eb6 /bin
parenta8863a750a360bad6759f5f2c4df5d2001b31e18 (diff)
Fix notify-send not coming through
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync4
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.