From: eldy <> Date: Sat, 21 Jun 2003 00:29:09 +0000 (+0000) Subject: Better management of mail log files : X-Git-Tag: AWSTATS_5_6_BETA~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f7b0ff505e51b22ca6d43c1b2ecc1e11254d1e;p=thirdparty%2FAWStats.git Better management of mail log files : Added ShowSMTPErrors parameter. Added maillogconvert.pl tool. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 92f43a39..548681cc 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1565,7 +1565,12 @@ sub Check_Config { debug(" ExtraFirstColumnValuesTypeVal[$extranum] is array ".join(',',@{$ExtraFirstColumnValuesTypeVal[$extranum]}),2); } - # Refuse LogFile if contains a pipe and PurgeLogFile || ArchiveLogRecords set on + # Deny $ShowHTTPErrorsStats and $ShowSMTPErrorsStats both set + if ($ShowHTTPErrorsStats && $ShowSMTPErrorsStats) { + error("ShowHTTPErrorsStats and ShowSMTPErrorsStats can't be both set at the same time"); + } + + # Deny LogFile if contains a pipe and PurgeLogFile || ArchiveLogRecords set on if (($PurgeLogFile || $ArchiveLogRecords) && $LogFile =~ /\|\s*$/) { error("A pipe in log file name is not allowed if PurgeLogFile and ArchiveLogRecords are not set to 0"); } @@ -6371,10 +6376,11 @@ if (scalar keys %HTMLOutput) { if ($linetitle) { print ($frame?"\n":"