summaryrefslogtreecommitdiff
path: root/bin/email
diff options
context:
space:
mode:
Diffstat (limited to 'bin/email')
-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