Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2003 21:30:57 -0400
From:      Dragoncrest <dragoncrest@voyager.net>
To:        David Landgren <david@landgren.net>, freebsd-questions@freebsd.org
Subject:   Re: Need a little help with a proof of concept cgi.
Message-ID:  <5.2.0.9.2.20030625212712.00a70490@pop.voyager.net>
In-Reply-To: <3EFA0882.7070304@landgren.net>
References:  <5.2.0.9.2.20030625160311.00a09b10@pop.voyager.net> <5.2.0.9.2.20030625160311.00a09b10@pop.voyager.net>

next in thread | previous in thread | raw e-mail | index | archive | help

>I think you want to separate the tallying of stats from the display. The 
>stats can be kept up to date via procmail recipes, content filtering or 
>logfile tailing. That happens all the time.
>
>When someone hits your CGI script, you only have to retrieve the 
>statistics, whether they be from a flat file, a DBM file or a database 
>table, and format the results as you see fit. This way you can also 
>produce a test browser that works from the command line.

         Yes, I want to be able to generate statistics of how many total 
emails are recieved and how many are filtered into each mailbox.  The other 
ideas are secondary, but mail filtering stats is my main goal.

>>web browser off your web server they can see the stats for each user and 
>>clear the counters/mailboxes if necessary.  The stats would be my biggest 
>>concern.  I'm no huge cgi expert and I also figured that this might be 
>>useful for a lot of other people in some form so I'm sharing the idea in 
>>hopes that those of you with more experience with CGI might be able to 
>>come up with a working cgi script.  I don't think it will be anything 
>>huge, but I'm unsure where to start.  Thanks for the input everyone!  :)
>
>First off, start gathering your stats. That has nothing to do with CGI, 
>and will probably present enough challenges as it is to keep you busy for 
>a while. You might also want to look at packages that do this sort of 
>thing already, like mailgraph. (But otherwise your idea sounds like an 
>excellent learning opportunity).

         Hey, thanks!!  I'll start looking into it.  This has started me 
off in the right direction at least. :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.2.20030625212712.00a70490>