the problem is that condwrite expects the message on a filehandle(in this case fd 0) which is seekable. attempting this with a pipe wont work but there is a package out there to help and its called seekablepipe. i havent used it and dont know where to get it but perhaps someelse on the list might beable to provide more info about where to find it and how to use it.

cheers

travis

Carsten Mueller wrote:

hi,

i�ve written a script to spamcheck and write new mails to the
users maildir:

mailserv:~ # cat /var/qmail/bin/spamcheck.sh
/usr/bin/spamc -f -u $1|/var/qmail/bin/condwrite ./Maildir/ /bin/true


if i use this script as deliveryProgramPath i get the following error:
@400000004068c4b7141b31a4 delivery 1638: deferral: condwrite:_fatal:_Unable_to_rewind_message._(#4.3.0)/


what�s the problem?


carsten







Reply via email to