Date: Fri, 15 Dec 2000 13:08:51 -0600 From: Scott Lambert <lambert@cswnet.com> To: freebsd-stable@freebsd.org Subject: /etc/periodic.conf daily_status_mailq_shorten="YES" broken? Message-ID: <20001215130851.A44717@ssabsd.csw.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
I'm not seeing any output from /etc/periodic/daily/440.status-mailq
(v. 1.4.2.2) when I try to use the short form output by specifying
daily_status_mailq_shorten="YES" in /etc/periodic.conf
Maybe I'm not holding my mouth right. It wouldn't be the first time.
Anyway, I "fixed" it to give me some actual output and to be configurable
for how many messages to a unique addresses are required before it will
output that line.
This is probably the wrong fix, but it's the best I know how to do.
Diffs are attached.
--
Scott Lambert
lambert@cswnet.com
[-- Attachment #2 --]
*** 440.status-mailq.orig Fri Dec 15 10:36:47 2000
--- 440.status-mailq Fri Dec 15 10:41:50 2000
***************
*** 34,40 ****
sort |
uniq -c |
sort -nr |
! awk '$1 > 1 {print $1, $2}');;
*)
mailq;;
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
--- 34,41 ----
sort |
uniq -c |
sort -nr |
! awk "\$1 > $daily_mailq_shorten_min {print \$1, \$2}");
! echo "$rc";;
*)
mailq;;
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
[-- Attachment #3 --]
*** periodic.conf.dist Fri Dec 15 12:47:52 2000
--- periodic.conf Fri Dec 15 12:49:45 2000
***************
*** 106,111 ****
--- 106,114 ----
# 440.status-mailq
daily_status_mailq_enable="YES" # Check mail status
daily_status_mailq_shorten="NO" # Shorten output
+ daily_mailq_shorten_min=1 # Number of uniq addrs
+ # in output must be >
+ # this number
# 450.status-security
daily_status_security_enable="YES" # Security check
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001215130851.A44717>
