You can easily insert messages into Qmail's queue with qmail-queue but there
seems to be no approved way of 'manually' extracting messages from the
queue.

Would a 'qmail-unqueue' program be a good idea?

Trying to keep in with the Qmail way of doing things, It might have the
following syntax:

qmail-unqueue queue-id program [ arg ... ]

The queue-id could be extracted from the qmail-qread output. The program
would receive the message on stdin & the envelope information in the usual
environment variables. The qmail-unqueue program would remove the message
from the queue if the program exits 0.

I probably overlooked some important aspects but it seems useful...

Comments?

Regards,
Peter van der Landen



Reply via email to