Mark Lucia wrote:
> 
> In an effort to impliment a "New E-mail counter", I've hacked
> qmail-local to write the user id out to a named pipe. Another program
> then reads the named pipe and increments a column in an oracle database
> for new email count. It all worked quite well in the test environment,
> but it seems that when the incoming load goes up, I miss some local
> deliveries (the new email count on a production system is always too
> low).
> 
> I choose to impliment it in this fashon as there is a cost to building a
> connection to the oracle database (a second or more) that I felt would
> impact qmail-local too much. I suspect that the choice of named pipe was
> a poor one, but don't have a clue.
> 
> Anyone have a suggestion? Love to hear from you... tnx Mark

Hi,
 I am guessing this is probably for a web page that will tell a user how
many new messages he has when he signs in. This is very simple to do
with php, just read the users Maildir/new directory, do a 'ls | wc -l' ,
and print the result to the web page. 

Mike

Reply via email to