Hello there,
I have a technical problem -(((
I need to write a wrapper for qmail-queue and I have some
"understanding problems".
reading the manual:
qmail-queue reads a mail message from descriptor 0. It
then reads envelope information from descriptor 1.
I tried this, but it is not working.. can I have a suggestion or a tip
please if possible? Flamings -> /dev/null
-------
#!/usr/local/bin/python
import sys
import popen2
import os
f = os.fdopen(0, "rb")
fd0 = f.readlines()
f = os.fdopen(1,"rb")
fd1 = f.readlines()
koz=''
for key in fd0:
koz=koz + key + "\n"
koz ="/var/qmail/bin/qmail-queue.orig "+koz
infd, outfd = popen2.popen2(koz)
for key in fd1:
outfd.write(key+"\n")
ecode=infd.close()
outfd.close()
--
Boris K�ster
Maintainer of QSP: Qmail Spamkiller Project: http://www.x-itec.de/QSP