From 8d1b60e3a15566f2aca007911456366735f26712 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 20 Jan 2016 16:14:37 +0000 Subject: Add notification for new mail --- bin/email | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/email (limited to 'bin/email') 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 -- cgit v1.2.3