> > > Can you shed any more light on this. I am very interested as I may
> > > write something similar soon, and any ideas / help would be much
> > > appreciated.
> >
> > Well, that's more a perl/Unix issue than a qmail one so this isn't the
> > right place to discussed it. If you're asking about the benefits of
> > poll vs select, there is plenty of material on the net about
> > this. (Now if kqueue gets into enough Unixen and someone write a perl
> > interface for it, well, that'd be something to talk about :> )
> >
>
> What I was interested in was using perl to drive qmail-remote, not a
> discussion of poll vs select, although that would be handy.
Well, it's no different from running any other program within
perl. The interface to qmail-remote is completely documented in the
qmail-remote manpage.
The only trap is that you cannot use open(... "|qmail-remote") as you
need to set up a bi-directional pipes. I did it the hard way with
fork/exec and manipulated the fds, but you could possibly use
IPC::Open2 available from your friendly CPAN server. But this is
mostly perl/Unix talk, not qmail.
Regards.