Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2001 14:06:47 -0400 (EDT)
From:      "Nathan Vidican" <nvidican@ipsnetwork.net>
To:        questions@freebsd.org
Subject:   OT: Any ideas on how to count emails from a remote machine?
Message-ID:  <200108281806.f7SI6l771391@mail.ipsnetwork.net>

next in thread | raw e-mail | index | archive | help
Does anyone have any ideas on how one could count the amount of emails 
a specific user may have; in a case where the reporting script, (CGI 
program; mostly written in Perl), is on a different machine than that 
of the user's actual email?
   Basically I need the script to report '3 new emails' for user 'xyz'. 
It will be used as a link to the web-based email system which is 
located on the actual mailserver itself. The system is a web portal 
type application, which uses essentially the same userbase as that of 
the mailserver; yet runs from the webserver. I thought about just using 
an suid root script to check a given user's mail spool for the number 
of occurances wherein a line starts with "From:", that way I could give 
the total count of emails in a given user's mail spool. I'm just not 
sure how to get that number back to the portal which runs on a 
different server. Both servers share a common NFS mount, (which also 
happens to be on a third server), so I thought maybe some sort of 
logfile-type process might work. The problem with that being that the 
logfile would have to be updated to match the information in the 
mailspool. I figured before I go and try to re-invent the wheel on this 
one that I might ask around and see if anyone's done anything similar?

-- 
Nathan Vidican
Nathan@Vidican.com
http://Nathan.Vidican.com/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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