summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-01-20 16:14:37 +0000
committerUrbain Vaes <urbain@vaes.uk>2016-01-20 16:14:37 +0000
commit8d1b60e3a15566f2aca007911456366735f26712 (patch)
treee97cfe545e36791a4e5babf3396cc6b341672cd4 /bin
parent5ed0ddfdfe8087f9f46a3419b5aa4d9b574e89e1 (diff)
Add notification for new mail
Diffstat (limited to 'bin')
-rwxr-xr-xbin/email10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/email b/bin/email
new file mode 100755
index 0000000..738efbb
--- /dev/null
+++ b/bin/email
@@ -0,0 +1,10 @@
+#! /usr/bin/env bash
+
+while true;
+do
+ mbsync -a
+ nmails=$(find $HOME/.mail -path '*/new/*' -type f | wc -l)
+ [[ nmails -ge 1 ]] && notify-send "New mail!"
+ date
+ sleep 5m
+done