Measuring the time it takes to process one message or batch

Julian Field MailScanner at ecs.soton.ac.uk
Tue May 5 12:09:19 IST 2009



On 05/05/2009 11:59, infernix wrote:
> Julian Field wrote:
>>> I'd like to be able to test this on the live setup just as 
>>> spamassassin can. As far as i can tell, MailScanner --lint only does 
>>> internal checking and does not actually support processing a message 
>>> or batch of messages.
>> Do "MailScanner --help" and you will find the "--debug" and 
>> "--debug-sa" switches, among others.
>
> I know about those, but:
>
> -lint: Test the configuration and report errors.
>
> -debug: Run MailScanner in debug-mode. In debug-mode MailScanner 
> doesn't spawn childrens and produce a lot of output. Can be compined 
> with -debug-sa.
>
> -debug-sa: Run the spamassassine module inside MailScanner in 
> debug-mode. Warning: This option doesn't stop MailScanner from 
> spawning children! Can be combined with -debug.
>
> These options will just spawn MailScanner as normal, possibly not 
> forked, but with much more output. This is not the equivalent of 
> 'spamassassin -D < spammail', because MailScanner in debug mode will 
> just load the MailScanner.conf that is used in production and start 
> processing the configured queue directory. There is also no option to 
> specify some alternative config.
Yes there is, just specify the config file on the command line. No 
switch needed for that.
> It's not possible to run it in debug mode while the live mailscanner 
> processes continue on as normal, nor is it possible to let it process 
> one mail (or batch) by pointing it to a file (or directory).
Yes it is, read the output of "MailScanner --help" before you say things 
like this :-)
>
> So my question still stands; is there a way to let MailScanner process 
> one (batch of) messages in debug mode *without* having it affect the 
> running (live) mailscanner process?
Yes, just run it with --debug. It will not affect the live MailScanner 
process at all. I do it all the time.

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
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