Remove time from logwatch reports

Greg Borders gborders at
Fri Feb 3 15:24:35 GMT 2006

>> I also don't like this feature.  I've been trying to figure out how  
>> to remove it without success.  Can you give me some hints how to do  
>> so.
>> As well, I agree that
>> Log Speed = no
>> should mean exactly what it speed logging.
> Either edit line 110 of MessageBatch, or else just set syslog.conf so  
> that is not logged to your maillog.

Taking a look at the file, I see in 'if'  in there for 
the log variable, would this logic work? My Pearl is weak. ;)

  # before

  MailScanner::Log::InfoLog("Batch completed at %d bytes per second (%d 
/ %d)",
                            $speed, $totalbytes, $now-$this->{starttime})
     if MailScanner::Config::Value('logspeed');
  MailScanner::Log::InfoLog("Batch processed in %.2f seconds", $totaltime);

 # after

  if ( MailScanner::Config::Value('logspeed') )
    MailScanner::Log::InfoLog("Batch completed at %d bytes per second 
(%d / %d)",
                          $speed, $totalbytes, $now-$this->{starttime})
    MailScanner::Log::InfoLog("Batch processed in %.2f seconds", 

Greg Borders
Sys. Admin.

This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list