hi,
i got a shell script that can do that. if the 1st arg is NULL,
it's going to flush the list, if it is a message number ( get it from
qmail-qread ), then it is going to delete that message..
here is it.
------------------<>--------------------
#!/bin/sh
cd /var/qmail/queue
MID=$1
FLAG=0
/etc/init.d/qmail stop
for file in `find . -iname \* | grep "./*/[0-9]"`
do
FILENAME=`basename $file`
if [ -n "$MID" ];then
if [ "$MID" != "$FILENAME" ];then
continue
fi
fi
if [ -f $file ];then
echo "removing $file..."
rm $file
FLAG=1
fi
done
if [ $FLAG -ne 1 ];then
echo "No message deleted from queue"
fi
/etc/init.d/qmail start
/etc/init.d/qmail status
--------------------<>--------------------------
hope this helps.
regards
omicron
--
******
omicron Mail:[EMAIL PROTECTED]
(Sridhar N) www:omicron.symonds.net
pubkeys:omicron.symonds.net/pubkeys
C O G I T O E R G O S U M
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~