On Tue, 29 Aug 2000, Serge Knystautas wrote:
> My first reaction is to say that the mailet API probably isn't correct. 
> Mailet like API maybe, but not the mailet itself.  The IM server will
> probably be similar in some respect, but I'm not sure about the NNTP
> server.

Okay - I would say the NNTP was more similar and IM less
similar. NNTPs natural message format is the extended RFC
822 (the same thing mail messages are based on). News
messages also have to pass through specific chains - much
like at mail gateways or relays.

Specifically the things I want to do is to be able to do
processing on each news message or restrict access to
posting to different areas. Some also will transform the
internal message body between different mime-types (acts
just like a mail gateway) and other processors/Newslets will
pop bits of advertising or list management details at footer
and header of message. So in many ways they are similar -
same message format, same relaying architecture and same
gateway requirements etc - but as of yet I am not sure if
Mailets will be the way :P

> I think there are some good design lessons though in this (and the
> servlet API).  I think it is useful is to have xxxxxlets with config and
> context objects, and the lifecycle (init/destroy) for the xxxxlet.  This
> keeps the system more independent.  Beyond that, the unique of the
> protocol only affects a small part of the API... servlets have
> service(ServletRequest, ServletResponse), mailets have service(Mail),
> and matchers have match(Mail) (hmm... maybe we should call them
> matchlets.... nah...).  I think once you figure out the basic way you
> want your xxxxlets to affect the protocol, build the appropriate service
> method and all the needed support classes.

Yep - I went through a time where everything was a -let. I
have a testlet unit testing framework, a gamelet game adding
framework, profilelet profiling framework etc :P

It was the best way I knew how to do stuff - until I
discovered Inversion of Control (like Avalon). Of course I
never knew what it was called and hadn't actually seen
another project till Avalon that did it :P

Cheers,

Pete

*--------------------------------------------------*
| Latrobe University,     | Does the name 'Pavlov' |
| Bundoora, Australia     |    ring a bell ?       |
*--------------------------------------------------*



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to