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:
parent
299920e5ed
commit
9472aac628
@ -24,12 +24,12 @@ case "$daily_status_mailq_enable" in
|
|||||||
|
|
||||||
rc=$(case "$daily_status_mailq_shorten" in
|
rc=$(case "$daily_status_mailq_shorten" in
|
||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
rc=$(mailq |
|
mailq |
|
||||||
perl -ne 'print if /^\s+\S+@/' |
|
perl -ne 'print if /^\s+\S+@/' |
|
||||||
sort |
|
sort |
|
||||||
uniq -c |
|
uniq -c |
|
||||||
sort -nr |
|
sort -nr |
|
||||||
awk '$1 > 1 {print $1, $2}');;
|
awk '$1 > 1 {print $1, $2}';;
|
||||||
*)
|
*)
|
||||||
mailq;;
|
mailq;;
|
||||||
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
|
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
|
rc=$(case "$daily_status_mailq_shorten" in
|
||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
rc=$(mailq -Ac |
|
mailq -Ac |
|
||||||
perl -ne 'print if /^\s+\S+@/' |
|
perl -ne 'print if /^\s+\S+@/' |
|
||||||
sort |
|
sort |
|
||||||
uniq -c |
|
uniq -c |
|
||||||
sort -nr |
|
sort -nr |
|
||||||
awk '$1 > 1 {print $1, $2}');;
|
awk '$1 > 1 {print $1, $2}';;
|
||||||
*)
|
*)
|
||||||
mailq -Ac;;
|
mailq -Ac;;
|
||||||
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
|
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user