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
  • Method Details

    • accept

      SmarterMessageListener.Receiver accept(String from, 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.