Added mail module

This commit is contained in:
Manuel Palenzuela 2019-10-22 01:30:42 +01:00
parent c553c5a1b1
commit 8ec45bf4a0

14
modules/mail Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
# Prints number of unread mail
# Requires mutt/neomutt
MAIL_DIR="/home/$USER/Mail/INBOX/new/*"
PREFIX=' :'
get_mail()
{
echo "$PREFIX$(du -a $MAIL_DIR 2>/dev/null | wc -l)"
}
get_mail