From 79d9fd6c1335f30dfd14df0e9dabb7268a8dcdde Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 7 May 2002 13:11:05 +0000 Subject: Fix the output when daily_status_mailq_shorten is set to YES PR: 23766 Mostly submitted by: lambert@ssabsd.csw.net MFC after: 3 days --- etc/periodic/daily/440.status-mailq | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc/periodic') diff --git a/etc/periodic/daily/440.status-mailq b/etc/periodic/daily/440.status-mailq index b75b470..90869d8 100755 --- a/etc/periodic/daily/440.status-mailq +++ b/etc/periodic/daily/440.status-mailq @@ -24,12 +24,12 @@ case "$daily_status_mailq_enable" in rc=$(case "$daily_status_mailq_shorten" in [Yy][Ee][Ss]) - rc=$(mailq | + mailq | perl -ne 'print if /^\s+\S+@/' | sort | uniq -c | sort -nr | - awk '$1 > 1 {print $1, $2}');; + awk '$1 > 1 {print $1, $2}';; *) mailq;; esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l) @@ -44,12 +44,12 @@ case "$daily_status_mailq_enable" in rc=$(case "$daily_status_mailq_shorten" in [Yy][Ee][Ss]) - rc=$(mailq -Ac | + mailq -Ac | perl -ne 'print if /^\s+\S+@/' | sort | uniq -c | sort -nr | - awk '$1 > 1 {print $1, $2}');; + awk '$1 > 1 {print $1, $2}';; *) mailq -Ac;; esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l) -- cgit v1.1