Russ Allbery writes:
> Sam <[EMAIL PROTECTED]> writes:
>
> > The stock maildrop can do it, except that it's not a little program, and
> > it will need an additional command line argument (a path to a little
> > recipe file).
>
> Yeah. maildrop sounds like a great tool, but in this case I think that
> for a lot of applications a little penknife is all that's needed rather
> than the Swiss Army knife. And at least theoretically it should be able
> to just reuse the maildir delivery code from qmail-local, making it pretty
> trivial to add to qmail proper.
Here's your program (call it deliver-to-.qmail):
#!/bin/sh
exec qmail-local "$USER" "$HOME" "$LOCAL" "" "nodeliver" "$HOST" "$SENDER" "$1"
To use it as you document above:
|deliver-to-.qmail "./Maildir/"
To use it as Mark Delany had suggested for his new '*' delivery method:
|deliver-to-.qmail `program-which-when-run-returns-.qmail-file-contents`
--
-russ nelson <[EMAIL PROTECTED]> http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice | that freedom is the
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | cause of world peace.