On Tue, Nov 16, 1999 at 03:04:57PM +1030, Phil Crooker wrote:
> With initial testing I can interrupt the flow -- I can say write it to a
> file, but can't use this file as input for qmail-queue without screwing
> up the header.  I don't know how qmail-queue (or qmail-remote for that
> matter) takes it's input.

qmail-queue reads a mail message from FD0 and the envelope from FD1.  To
run qmail-queue, you will at minimum need to open up one pipes to FD0
and make sure that FD1 does not get touched.  Then, make sure (if you
accept the message) that you copy the input bit-for-bit into the pipe
and close it.  qmail-queue will then read FD1 (which you've preserved)
and exit.  Trap the return code and exit with the same code.
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/

Reply via email to