From 8a86022fe08cd998c1cb8703f1ca72ea86fde956 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 26 May 2024 14:33:22 -0400 Subject: [PATCH] Ignore no mail error --- scripts/ewp-send-new-mail-summary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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