----- Original Message -----
From: <[EMAIL PROTECTED]>
> Basically, my goal is to receive and process mail in-process with my own
> app, as simply as possible and with as little overhead as possible. JAMES
> appears to provide all of the building blocks required to do this - they
> just need to be extracted (which doesn't seem all that hard).
Are you looking for a plubbable interface like this in James that you can
extract and use in your own application ? Of course you'll need to provide
(a) input connection streams, (b) a way to provide some additional
information e.g user information/authenitcation for SMTP AUTH protocol and
(c) a way to store the incoming mail.
If you are, do you think your's is a special need or do you think this would
be useful to a lo of folks ?
/** Handles SMTP Connection */
interface SMTPHandler {
/**
* @param protocolInput input to the handler
* @param protocolOutput output from handler
* @param userAuthenticator Used for user authentication etc.
* @param spooler Mail is streamed using this interface
*/
void service(InputStream protocolInput,
OutputStream protocolOutput,
UserRepository userAuthenticator,
Store spooler);
}
Harmeet
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>