Package mireka.filter
Interface MailTransaction
-
- All Known Implementing Classes:
MailTransactionImpl
public interface MailTransactionIt follows an incoming mail transaction, it makes data available as the transaction - which consists of several steps - progresses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<RecipientContext>getAcceptedRecipientContexts()accepted recipientsObjectgetAttribute(String name)MailDatagetData()null if data is not received yetStringgetFrom()Returns the accepted reverse-path supplied in the MAIL SMTP command.org.subethamail.smtp.MessageContextgetMessageContext()java.net.InetAddressgetRemoteInetAddress()convenience function, a better place for this would beMessageContextvoidreplaceData(MailData mailData)filters shouldn't call this method, instead they should simply wrap theMailDataobject they receive and pass it to the next element in the chain.voidsetAttribute(String name, Object value)
-
-
-
Method Detail
-
getFrom
String getFrom()
Returns the accepted reverse-path supplied in the MAIL SMTP command.- Returns:
- null if is is not yet received, or if it was rejected, empty string in case of a null reverse-path
-
getAcceptedRecipientContexts
java.util.List<RecipientContext> getAcceptedRecipientContexts()
accepted recipients
-
getData
MailData getData()
null if data is not received yet
-
replaceData
void replaceData(MailData mailData)
filters shouldn't call this method, instead they should simply wrap theMailDataobject they receive and pass it to the next element in the chain.
-
getMessageContext
org.subethamail.smtp.MessageContext getMessageContext()
- Category:
- GETSET
-
getRemoteInetAddress
java.net.InetAddress getRemoteInetAddress()
convenience function, a better place for this would beMessageContext
-
getAttribute
Object getAttribute(String name)
-
setAttribute
void setAttribute(String name, Object value)
-
-