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 FilterBase
public void from(ReversePath from)
from
in interface FilterBase
public FilterReply verifyRecipient(RecipientContext recipientContext) throws RejectExceptionExt
FilterBase
UnknownRecipientDestination
; otherwise it will be rejected as an
unknown user.verifyRecipient
in interface FilterBase
RejectExceptionExt
public void recipient(RecipientContext recipientContext) throws RejectExceptionExt
FilterBase
FilterBase.verifyRecipient(mireka.filter.RecipientContext)
.recipient
in interface FilterBase
RejectExceptionExt
public void data(MailData data) throws RejectExceptionExt, org.subethamail.smtp.TooMuchDataException, java.io.IOException
data
in interface FilterBase
RejectExceptionExt
org.subethamail.smtp.TooMuchDataException
java.io.IOException
public void dataRecipient(MailData data, RecipientContext recipientContext) throws RejectExceptionExt
DataRecipientFilter
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.dataRecipient
in interface DataRecipientFilter
RejectExceptionExt
public void done()
FilterBase
done
in interface FilterBase