Re: [Exim] Newbie questions..

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Steve Campbell
Ημερομηνία:  
Προς: Brian
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Newbie questions..
Brian,

Newer versions of eximstats will count the occurrences of specified patterns by use of the '-pattern' option. Eg:

eximstats   -pattern "DNS Block" /dnsbl/      mainlog


However, you will get an overall failure unless one valid received or sent line is found. If you're not afraid of editing the code, you can remove this check by finding and deleting the code block :

if ($begin eq "9999-99-99 99:99:99") {
print "**** No valid log lines read\n";
exit 1;
}

Alternatively, echo a valid log line onto the end of the log before you parse it :-)

Steve Campbell

--