mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96160
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user