public interface FilterBase
Note: Don't implement this interface directly, use the descendant interfaces and the implementing abstract classes
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
data(MailData data) |
void |
done()
it is always called, even if some other filter failed or no mail was
delivered in this mail transaction
|
void |
from(ReversePath from) |
void |
recipient(RecipientContext recipientContext)
Processes an accepted recipient.
|
FilterReply |
verifyRecipient(RecipientContext recipientContext)
Decides if a recipient should be accepted.
|
void begin()
void from(ReversePath from) throws RejectExceptionExt
RejectExceptionExtFilterReply verifyRecipient(RecipientContext recipientContext) throws RejectExceptionExt
UnknownRecipientDestination; otherwise it will be rejected as an
unknown user.org.subethamail.smtp.RejectException - if the recipient is not valid and it must be rejectedRejectExceptionExtvoid recipient(RecipientContext recipientContext) throws RejectExceptionExt
verifyRecipient(mireka.filter.RecipientContext).RejectExceptionExtvoid data(MailData data) throws RejectExceptionExt, org.subethamail.smtp.TooMuchDataException, java.io.IOException
RejectExceptionExtorg.subethamail.smtp.TooMuchDataExceptionjava.io.IOExceptionvoid done()