public abstract class AbstractDataRecipientFilter extends Object implements DataRecipientFilter
| Modifier and Type | Field and Description |
|---|---|
protected MailTransaction |
mailTransaction |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataRecipientFilter(MailTransaction mailTransaction) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
data(MailData data) |
void |
dataRecipient(MailData data,
RecipientContext recipientContext)
This method and the
FilterBase.data(mireka.MailData) method are called together, the similar
methods of the next filter will be called only after both methods have
been run. |
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.
|
protected final MailTransaction mailTransaction
protected AbstractDataRecipientFilter(MailTransaction mailTransaction)
public void begin()
begin in interface FilterBasepublic void from(ReversePath from)
from in interface FilterBasepublic FilterReply verifyRecipient(RecipientContext recipientContext) throws RejectExceptionExt
FilterBaseUnknownRecipientDestination; otherwise it will be rejected as an
unknown user.verifyRecipient in interface FilterBaseRejectExceptionExtpublic void recipient(RecipientContext recipientContext) throws RejectExceptionExt
FilterBaseFilterBase.verifyRecipient(mireka.filter.RecipientContext).recipient in interface FilterBaseRejectExceptionExtpublic void data(MailData data) throws RejectExceptionExt, org.subethamail.smtp.TooMuchDataException, java.io.IOException
data in interface FilterBaseRejectExceptionExtorg.subethamail.smtp.TooMuchDataExceptionjava.io.IOExceptionpublic void dataRecipient(MailData data, RecipientContext recipientContext) throws RejectExceptionExt
DataRecipientFilterFilterBase.data(mireka.MailData) method are called together, the similar
methods of the next filter will be called only after both methods have
been run.dataRecipient in interface DataRecipientFilterRejectExceptionExtpublic void done()
FilterBasedone in interface FilterBase