Re: zeroseek and qmail

Charles Cazabon <[email protected]> Tue, 27 Aug 2002 10:36:43 -0600
Newsgroups gmane.comp.djb.zeroseek
Message-ID <[email protected]>
Mark Delany <[email protected]> wrote:

> > Someone (I think it was Russell?) noted that there's nothing in the 1.03
> > documentation that guarantees the fd supplied to qmail-command programs is
> > seekable
> 
> Check out the last sentence in the DESCRIPTION section of the
> qmail-local manpage. "The standard input for qmail-local must be a
> seekable file, so that qmail-local can read it more than once.".

Yes.

> Strictly speaking, it doesn't follow that the fd that qmail-local
> gives to the delivery command has to likewise be seeakable, but in
> practice that's the expectation the author has as we see in things
> like condredirect.

As you say, he only talks about the seekability in terms of the fd provided to
qmail-local, not /by/ qmail-local to other programs.

The only obvious way I can think of to keep the fd provided to programs
seekable under zeroseek would involve copying the message to a temporary file
and providing an fd to that; this could be done inside qmail-local when it
invokes a command delivery.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                         <[email protected]>
GPL'ed software available at:     http://www.qcc.ca/~charlesc/software/
-----------------------------------------------------------------------