summaryrefslogtreecommitdiff
path: root/check_spam_folder
blob: 86875948328b889dfd1880f458de39f7505bc1b0 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

SPAM_FOLDER=/home/steve-mail/Home-mail/misc/spam

NUM_MAILS=`grep -rc ^From: $SPAM_FOLDER`
if [ $NUM_MAILS -gt 0 ] ; then
    echo "Check your spam folder $SPAM_FOLDER:" 
    echo "  it currently contains $NUM_MAILS suspect message(s)" 
fi