aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
blob: 52660d59809c8b94242797d638475e6ba9f5452c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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