> > What I am thinking of doing is to have my routine return DECLINED after > identifying something to sideline, then set a note. The note would be read > by queue/qmail-queue and, if set, just silently drop it. Hopefully a minor > kludge to qmail-queue. > > Or is it possible to tell the sender, at this point, that the message was > accepted, but not pass it on to qmail-queue? > > Comments?
If you're trying to do what I think you're trying to do... which is actually what I think you just described above. just put a plugin that hooks the 'queue' hook and returns OK before qmail-queue runs if the note is set. here's some not quite valid code, but you should get the idea.. sub hook_data_post { if ( $data->from == "badguy" ) { $transaction->notes{'sideline'} = 1; } return DECLINED } sub hook_queue { if ( $transaction->notes{'sideline'} ) { return OK; } return DECLINED; } We do something like this at perl.org. I should extract the plugin and check it in. -R