diff --git a/scripts/ewp-send-new-mail-summary b/scripts/ewp-send-new-mail-summary index e7adea5..2fca9c7 100755 --- a/scripts/ewp-send-new-mail-summary +++ b/scripts/ewp-send-new-mail-summary @@ -8,7 +8,7 @@ if [ "$#" -ne 1 ]; then fi # Read a list of all new mail -new_mail=$(mail -H | grep "^.N") +new_mail=$(mail -H 2> /dev/null | grep "^.N") new_mail_count=$(echo "$new_mail" | wc -l | tr -d ' ') # If this list is empty, exit