FreeBSD Bugzilla – Attachment 26482 Details for
Bug 45222
[patch] daily rejected mail hosts report too long
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1023 bytes, created by
Alan Batie
on 2002-11-11 20:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alan Batie
Created:
2002-11-11 20:20:01 UTC
Size:
1023 bytes
patch
obsolete
>*** 460.status-mail-rejects.org Mon Nov 11 12:01:16 2002 >--- 460.status-mail-rejects Mon Nov 11 12:06:09 2002 >*************** >*** 32,37 **** >--- 32,42 ---- > echo > echo Checking for rejected mail hosts: > >+ if [ "$daily_status_mail_rejects_limit" -le 0 ] >+ then >+ daily_status_mail_rejects_limit=10 >+ fi >+ > start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'` > n=$(($daily_status_mail_rejects_logs - 2)) > rc=$({ >*************** >*** 50,56 **** > } | > perl -ne "print \"\$2\n\" > if (/reject=/ and /^$start.*ruleset=check_\S+,\s+arg1=(<[^@]+@)?([^>,]+).*reject=/o);" | >! sort -f | uniq -ic | sort -fnr | tee /dev/stderr | wc -l) > [ $rc -gt 0 ] && rc=1 > fi;; > >--- 55,61 ---- > } | > perl -ne "print \"\$2\n\" > if (/reject=/ and /^$start.*ruleset=check_\S+,\s+arg1=(<[^@]+@)?([^>,]+).*reject=/o);" | >! sort -f | uniq -ic | sort -fnr | head -n $daily_status_mail_rejects_limit | tee /dev/stderr | wc -l) > [ $rc -gt 0 ] && rc=1 > fi;;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45222
: 26482