about summary refs log tree commit diff stats
path: root/bin/mbsync-cron
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mbsync-cron')
-rwxr-xr-xbin/mbsync-cron4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mbsync-cron b/bin/mbsync-cron
index fc611c2..711b60f 100755
--- a/bin/mbsync-cron
+++ b/bin/mbsync-cron
@@ -32,7 +32,7 @@ syncandnotify() {
     printf ' %s' "$newcount" > "$XDG_DATA_HOME/mail/$account/note"
     # don't notify if there isn't new mail
     if [ "$newcount" -gt "0" ]; then
-        notify-send --app-name="mbsync-cron" "mail fetcher" "new mail for profile $account! [$newcount]" &
+        notif "mail fetcher" "new mail for profile $account! [$newcount]" &
 	# reduce output if you have a lot of new mail
 	if [ "$newcount" -lt "16" ]; then
         for file in $new; do
@@ -41,7 +41,7 @@ syncandnotify() {
 	    from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed '1!d'| sed '1,/From/s/From: //')
 	    # modified version of broken $subject variable, only prints the first subject line (so forwards are slightly unclear)
             subject=$(awk '/^Subject: / && ++n == 1,/^\<.*\>: / && ++i == 2' "$file" | sed '$D' | grep -m 1 '^Subject: ' | sed 's/Subject: //')
-            notify-send --app-name="mbsync-cron" "$from:" "$subject" &
+            notif "$from:" "$subject" &
 	    # sleep for half a second to avoid notification clog
 	    sleep .5
         done