in reply to Re: mail counter
in thread mail counter

I suspect that the easiest option wouldn't be to reimplement sendmail, but to write a wrapper round sendmail which does all of the scheduling and then hands the actual mail processing off to the original sendmail program.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^3: mail counter
by jettero (Monsignor) on Jan 19, 2007 at 16:52 UTC

    Yes, that would be easier by a longshot. I was daydreaming about a replacement so you can use perl as an MTA without having to have sendmail/qmail/msmtp/ssmtp installed, but I suppose it wouldn't pay to make another MTA...

    -Paul

      The plan was to wrap the sendmail in place, not write a new MTA. I suppose I should have been clearer. I just wasn't sure if sendmail needed some special interface. From the comments though it looks like you would just open the sendmail interface for writing and write the message to it.

      Thanks for all the great ideas.