From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 18:21:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ACC637B401 for ; Wed, 25 Jun 2003 18:21:45 -0700 (PDT) Received: from dragoncrest.jasnetworks.net (dragoncrest.jasnetworks.net [65.194.254.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id A475843FEA for ; Wed, 25 Jun 2003 18:21:44 -0700 (PDT) (envelope-from dragoncrest@voyager.net) Received: from works.voyager.net (bsdbox [192.168.0.3]) h5PLY6W6040544; Wed, 25 Jun 2003 21:34:06 GMT (envelope-from dragoncrest@voyager.net) Message-Id: <5.2.0.9.2.20030625212712.00a70490@pop.voyager.net> X-Sender: dragoncrest@pop.voyager.net X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Wed, 25 Jun 2003 21:30:57 -0400 To: David Landgren , freebsd-questions@freebsd.org From: Dragoncrest 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: Need a little help with a proof of concept cgi. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2003 01:21:45 -0000 >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. :)