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
This commit is contained in:
Brian Somers 2002-05-07 13:11:05 +00:00
parent 299920e5ed
commit 9472aac628

View File

@ -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)