Robin Bowes said the following on 02/23/2006 01:57 AM:
> I modified my accepted_log plugin to return DECLINED and put it before
> qmail-queue, et voila:
>
> 10948 running plugin (queue): queue::accepted_log
> 10948 queue::accepted_log plugin: details of accepted mail go here
> 10948 Plugin queue::accepted_log, hook queue returned DECLINED,
> accepted_log finished.
> 10948 running plugin (queue): queue::qmail_2dqueue
> 10950 queue::qmail_2dqueue plugin: (for 10948 ) Queuing qp 10950 to
> /var/qmail/bin/qmail-queue
> 10948 Plugin queue::qmail_2dqueue, hook queue returned OK, Queued!
> 1140659498 qp 10950 <>
> 10948 250 Queued! 1140659498 qp 10950 <>
>
> Would there be a problem in changing the qmail-queue plugin to return
> DECLINED so that other plugins can run after it? Or should this just be
> a documented feature?
Final post tonight - honest!
I modified queue/qmail-queue to return DECLINED instead of OK by
changing line 79 to:
return (DECLINED, "Queued! " . time . " qp $child $msg_id");
I then put my accepted_log plugin *after* qmail-queue in config/plugins
and confirmed that hook_queue subs are called.
If this doesn't cause any undesirable side effects then I would propose
that this change be applied upstream.
R.