From e146e947c52ac4adbe426b3f893faff1e46ed5f8 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 19 Apr 2016 15:24:25 +0100 Subject: Use GNU stow for dotfiles management --- bin/email | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 bin/email (limited to 'bin/email') diff --git a/bin/email b/bin/email deleted file mode 100755 index 84e923e..0000000 --- a/bin/email +++ /dev/null @@ -1,16 +0,0 @@ -#! /usr/bin/env bash - -# Necessary to see the notification -export DISPLAY=:0 - -# Get all emails -mbsync -a - -new_mails=$(find $HOME/.mail -path '*/new/*' -type f) -subjects=$(cat $(echo -e ${new_mails/'\n'/' '}) | grep "^Subject: " | sed "s/^Subject: //g") - -if [[ ! -z ${new_mails} ]]; then - /usr/bin/notify-send -t 3 "New mail(s)!" "${subjects}" -fi - -echo "Email last checked on $(date)". -- cgit v1.2.3