public interface SimpleMessageListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.String from,
java.lang.String recipient)
Called once for every RCPT TO during a SMTP exchange.
|
void |
deliver(java.lang.String from,
java.lang.String recipient,
java.io.InputStream data)
When message data arrives, this method will be called for every recipient
this listener accepted.
|
boolean accept(java.lang.String from,
java.lang.String recipient)
from - is a rfc822-compliant email address.recipient - is a rfc822-compliant email address.void deliver(java.lang.String from,
java.lang.String recipient,
java.io.InputStream data)
throws TooMuchDataException,
java.io.IOException
from - is the envelope sender in rfc822 formrecipient - will be an accepted recipient in rfc822 formdata - will be the smtp data stream, stripped of any extra '.' chars. The
data stream is only valid for the duration of this call.TooMuchDataException - if the listener can't handle that much data.
An error will be reported to the client.java.io.IOException - if there is an IO error reading the input data.Copyright © 2006-2013. All Rights Reserved.