Released 4.50.8 --- Re: Time::HiRes for MessageBatch timing

Julian Field MailScanner at ecs.soton.ac.uk
Sun Jan 15 18:26:50 GMT 2006


One note about 4.50.8 ---- Please install it, or upgrade to it, with my 
./install.sh as you may well need the new modules I have added to it.

Julian Field wrote:
> Now done. At the end of the batch, the wall-clock time taken to 
> process that batch is logged.
>
> This is in 4.50.8, which I have just released.
>
> This version has added lots of command-line options that you can use 
> to do things like
>    - Check your configuration for errors (--lint)
>    - Switch on "Debug = yes" (--debug)
>    - Calculate the value of a configuration option,
>      given a set of message values,
>      to provide a ruleset checker and
>      Custom Function checker (several options)
>    - Display command line usage (--help)
>
> Don't forget that you can easily change the amount of logs generated 
> by MailScanner by editing /etc/syslog.conf and changing the "mail" log 
> priorities that are logged in /var/log/maillog. And if you don't want 
> to do that, then change MailScanner.conf to log to "local0" instead of 
> "mail" and separate it out into its own log channel completely.
>
>
> Nerijus Baliunas wrote:
>> Hi,
>>
>> if/when you do it, you could do it like spamassassin does - uses 
>> Time::HiRes
>> only when it is available. From SA INSTALL:
>>
>>   - Time::HiRes (from CPAN)
>>
>>     If this module is installed, the processing times are 
>> logged/reported
>>     more precisely.
>>
>> Nerijus
>>
>> On Thu, 24 Nov 2005 10:03:00 +0000 Julian Field 
>> <MailScanner at ECS.SOTON.AC.UK> wrote:
>>
>>  
>>> This just didn't happen as I haven't had the time to add a whole 
>>> new  Perl module to the MailScanner distribution.
>>>
>>> On 4 Nov 2005, at 16:27, Jeff A. Earickson wrote:
>>>
>>>    
>>>> Julian,
>>>>
>>>> Per my recent request for batch timing in the logs, please
>>>> look at my suggested changes for MessageBatch.pm (attached,
>>>> against 4.47.4).  My changes have NOT been tested at all, so I  
>>>> don't know if this will work.  The changes:
>>>>
>>>> * added Time::HiRes for timing the start and end timing on
>>>>   a batch of messages.
>>>>
>>>> * changed output of information in EndBatch from integer
>>>>   to float
>>>>
>>>> * Added a "Batch Completed in x.x seconds" syslog, even if
>>>>   "Log Speed" is not turned on in the config file.
>>>>
>>>> Please see if my idea makes sense.  Since HighRes is required
>>>> for SpamAssassin, why not use it here too to give better info?
>>>>
>>>> Jeff Earickson
>>>> Colby College
>>>>       
>>
>> ------------------------ MailScanner list ------------------------
>> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
>> 'leave mailscanner' in the body of the email.
>> Before posting, read the Wiki (http://wiki.mailscanner.info/) and
>> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>>
>> Support MailScanner development - buy the book off the website!
>>   
>

-- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


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



More information about the MailScanner mailing list