summaryrefslogtreecommitdiff
path: root/bin/email
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-01-20 18:52:36 +0000
committerUrbain Vaes <urbain@vaes.uk>2016-01-20 18:52:36 +0000
commitfe054f7d5f4ffe6f6bf3121e821b7783c93d9ee2 (patch)
tree500a828a26266b4990fe5432860e66ef5702bd3b /bin/email
parent8d1b60e3a15566f2aca007911456366735f26712 (diff)
Send notification when new mail arrives
Diffstat (limited to 'bin/email')
-rwxr-xr-xbin/email2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/email b/bin/email
index 738efbb..1d51ef8 100755
--- a/bin/email
+++ b/bin/email
@@ -4,7 +4,7 @@ while true;
do
mbsync -a
nmails=$(find $HOME/.mail -path '*/new/*' -type f | wc -l)
- [[ nmails -ge 1 ]] && notify-send "New mail!"
+ [[ nmails -ge 1 ]] && notify-send -t 1 "New mail!"
date
sleep 5m
done