org.subethamail.smtp.helper
Interface SmarterMessageListener
public interface SmarterMessageListener
This is an interface for processing the end-result messages that is
higher-level than the MessageHandler and related factory but lower-level
than SimpleMessageListener.
- Author:
- Jeff Schnitzer
accept
SmarterMessageListener.Receiver accept(java.lang.String from,
java.lang.String recipient)
- Called once for every RCPT TO during a SMTP exchange. Each accepted recipient
returns a Receiver which will have its deliver() mehtod called later.
- Parameters:
from - is a rfc822-compliant email address.recipient - is a rfc822-compliant email address.
- Returns:
- A Receiver if the listener wants delivery of the message, null if the
message is not to be accepted.
Copyright © 2006-2011. All Rights Reserved.