Re: zeroseek and qmail
Russell Nelson <[email protected]> Tue, 27 Aug 2002 15:39:57 -0400 (EDT)
| Newsgroups | gmane.comp.djb.zeroseek |
|---|---|
| Message-ID | <[email protected]> |
Charles Cazabon writes: > Not really. And since on most systems, most deliveries will be either > forwarding "&" directives or maildir/mbox directives, qmail-local only has to > do it when it sees the comparitively rare "|" program delivery directive. No, it's even easier than that. It's only if the "|" program delivery is not the final delivery instruction. Otherwise, qmail can open a file for the file deliveries, and open a pipe to qmail-queue for the forwarding directives, and open a pipe to /bin/sh -c program, and deliver to them all in parallel. read, write/write/write. > And that's assuming that qmail-local tries to make the fd seekable for the > program -- I don't see why djb couldn't simply say "stdin for the program is > now a socket" and tell you to do this if you want it seekable: > > | seekablepipe ... yourprogram It's never been guaranteed not to be a socket, so yes, a helper program (ala preline) is appropriate. -- -russ nelson http://russnelson.com | Crynwr sells support for free software | PGPok | businesses persuade 521 Pleasant Valley Rd. | +1 315 268 1925 voice | governments coerce Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |