diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-04-19 15:24:25 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-04-19 15:24:25 +0100 |
commit | e146e947c52ac4adbe426b3f893faff1e46ed5f8 (patch) | |
tree | 1605bf4eb78cc619988c92632f3cee2a56143fd5 /bin/email | |
parent | 83bd503208d45fa837348441196dd07223b13e3e (diff) |
Use GNU stow for dotfiles management
Diffstat (limited to 'bin/email')
-rwxr-xr-x | bin/email | 16 |
1 files changed, 0 insertions, 16 deletions
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)". |