Package mireka.filter

Interface MailTransaction

  • All Known Implementing Classes:
    MailTransactionImpl

    public interface MailTransaction
    It follows an incoming mail transaction, it makes data available as the transaction - which consists of several steps - progresses.
    • 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 the MailData object 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 be MessageContext
      • getAttribute

        Object getAttribute​(String name)
      • setAttribute

        void setAttribute​(String name,
                          Object value)