On Sat, Aug 15, 2009 at 8:11 AM, Norman Maurer<[email protected]> wrote:
> After thinkin a bit more about it, I thought It would be helpful to
> give you a small description about the "new" design ( just to make it
> a bit easier to understand). The new smtp fastfail stuff is now based
> on hooks. It similar to the design that qpsmtpd use ( See
> http://smtpd.develooper.com/). So my and Stefanos idea was, developers
> who want to write fastfail handlers should not need to implement a new
> CommandHandler for that. CommandHandler should only be used for
> implement new Commands ( sounds logic heh ?). So there are a few new
> interfaces (Hooks) who give the developer the possible to get stuff
> executed after the parsing on a command is done and before the final
> response (of the CommandHandler) is written to the smtp client.
>
> So here are the new hooks:
>
> AuthHook.java
> HeloHook.java
> MailHook.java
> MailParametersHook.java
> MessageHook.java
> QuitHook.java
> RcptHook.java
>
> So if a user wants (for example) check if the sender and recipient is
> the same and in this case reject the recipient he would implement the
> MailHook and RcptHook and do the checking in the there. I think that's
> much easier and clean then before.

i'm in favour of this design approach

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to