According to Kevin McCarthy < XXXX@XXXXX.COM >:
:qmail-queue reads a mail message from descriptor 0. It then
:envelope information from descriptor 1.
Wow - it _reads_ information from stdout ?
That's rather ... different.
Perhaps what you need to do is as simple as this.
set fd [open "/tmp/envelope" "w"]
puts $fd "stuff for the envelope"
set stdout [open "/tmp/envelope" "r"]
set qmail_queue [open |/var/qmail/bin/qmail-queue w]
and so on.
In other words, attach stdout to a file that will contain the info
you want to go to qmail.
Then, in theory, it would read that file at the appropriate time.
Warning - if it tries to output to stdout as well, you will have a problem,
because it won't be able to do it.
; In God we trust.
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto: XXXX@XXXXX.COM > <URL: http://www.yqcomputer.com/