I'm also thinking along those lines. I think I will create a SMTPCommand class which can be inherited to create new commands. The API will define several events where the command will receive a callback. To make things easy to change, all commands should be implemented this way, ie the server will not, by itself, contain any command logic.
/ Marcus Agehall (Scanian)
Previous text:
2004-02-23 11:42: Subject: Re: SMTP features
On Mon, Feb 23, 2004 at 11:00:04AM +0100, Marcus Agehall (Scanian) @ Pike (-) developers forum wrote:
rewrite the SMTP.Server into allowing pluggable modules which can provide SMTP-commands and extentions.
the smtp protocol module for roxen did this by simply looking for provider modules.
i guess without roxen a way could be to provide a method to set call-back functions for each command. kinda like you can set callbacks for tags in the html parser.
it should of course be possible to override the current commands with those callbacks.
greetings, martin.
/ Brevbäraren