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