> 
> On 08 Jul 2004, at 09:35, Dallas L. Engelken wrote:
> > I just whipped up a quick maillog parser display top rules firing in
> > 3.0.   It reads all maillog* files and generates top firing 
> rules for
> > ham and spam, as well as some general info.  A copy of it 
> can be found 
> > here http://www.rulesemporium.com/programs/sa-stats.txt
> 
> Looks nice, but a could of <PRE></PRE> tags around it would 
> have helped, or a note to just use curl/wget and avoid a browser...
> 

Did you see the variable at the top of the script??
my $PRINT_TO_WEB=0;   # prints content-type header so you can send the
output to a webpage.

And further down when it prints the results, it uses that if you set
PRINT_TO_WEB=1

  print "<pre>" if ($PRINT_TO_WEB);

That way if you want to call it via a web browser, you have that
ability.

d

Reply via email to