Hi Matt, [EMAIL PROTECTED] (Matt Sergeant) wrote in news:[EMAIL PROTECTED]:
> On Tue, 24 Jun 2003, Matt Sergeant wrote: > >> On Tuesday, Jun 24, 2003, at 08:39 Europe/London, Matt Sergeant >> wrote: >> >> > On Monday, Jun 23, 2003, at 21:02 Europe/London, Steph L wrote: >> > >> >> Looking at the return codes it seems that currently there is no >> >> DISCARD >> >> return code. Is it possible to add such return code in next >> >> versions ? Is it some qmail's limitation ? I'm rather used to >> >> postfix/sendmail and >> >> these MTAs offer some DISCARD feature ? >> > >> .. >> OK, done. If you return DISCARD from a body hook now it will claim >> successful delivery but silently drop the message. I don't like this >> option, but it can actually work in conjunction with (say) a spam >> filter with a quarantine system where the filter automatically >> quarantines the spam, so you need to not run the queue part. > > Having committed this I'm thinking very seriously of taking it out > again... I've just had a chat with Ask, and it seems the most sensible > way to implement this is as a queue hook within your plugin. If you > want to discard the email just return OK. If you want it queued the > normal way, return DECLINED. > > If you can think of a compelling reason to keep DISCARD in, say now, > otherwise I'll remove it in the next 24 hours. > => I see the point of being able to discard (silently) messages only in the queue part. However I feel that introducing a new keyword DISCARD for this purpose is a good idea. OK in this context does not make it clear enough that the message will be accepted and will be silently discarded. Both postfix & sendmail have choosen such a TAG name for better understanding of the underlying behaviour. Regards, SL/
