On Fri, 14 Mar 2003 12:31:14 -0500 (EST), Chris Hardie
<[EMAIL PROTECTED]> wrote:

> Greetings.  I'm interested in being able to view some statistics about
> TMDA and the magic it works in a given time period.  Wanted to see what
> you folks think about the idea.

If you're lazy, like me, you might consider doing this with simple
shell commands.  Most of this is easily done.

> Particular numbers of interest could be:
> 
> -Number of messages passing through TMDA

grep "Date:" tmda.in | wc -l

> -Breakdown of actions performed
>   -auto-confirmed b/c they're on a whitelist

grep "~/.tmda/lists/whitelist" tmda.in | wc -l

>   -dropped/bounced b/c they're on a blacklist

grep "~/.tmda/lists/blacklist" tmda.in | wc -l

>   -confirm requests sent

grep "Actn: CONFIRM pending" tmda.in | wc -l

>   -confirmations received

grep "Actn: OK good_confirm_done_cookie" tmda.in | wc -l

>   -...
> -Number of messages left unconfirmed

ls pending/*.msg | wc -l

It wouldn't take a rocket scientist to set up a cron job that dumps
this in a file every day.  If you don't care about pretty, then it's
pretty easy.  <winks>

> Even cooler, but not as practical, would be stuff like:
> 
> -Min/Avg/Max times between confirm requests and confirmations received
> -Number of distinct senders / subject lines
> -Number of "hits" on each whitelist / blacklist

Bleah.  I think you'd want to write some Python code for that sort of
stuff.

Gre7g.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to