com.goldeninnovations.smp
Interface MessageFilter

All Known Implementing Classes:
DefaultMessageFilter, DomainMessageFilter, MessageFilterChain

public interface MessageFilter

Allows incoming email messages to be filtered by the recipient's email address.


Method Summary
 boolean acceptMessage(EmailAddress recipient, InetAddress senderAddress, EmailAddress sender)
          Determines whether the email message (or the recipient if there are multiple to addresses specified) should be accepted.
 

Method Detail

acceptMessage

boolean acceptMessage(EmailAddress recipient,
                      InetAddress senderAddress,
                      EmailAddress sender)
Determines whether the email message (or the recipient if there are multiple to addresses specified) should be accepted.

This method will be executed while the connection to the remote sender is open, so execution time is critical.

Parameters:
recipient - the recipient to test. The email address specified in the RCPT TO command.
senderAddress - the Internet Address of the SMTP client.
sender - The email address specified in the MAIL FROM command.
Returns:
true if the message should be accepted, false otherwise.


Copyright © 2010 Eric Daugherty. All Rights Reserved.