Class AbstractDataMailPolicyFilter

All Implemented Interfaces:
MailListener, PluginComponent, MailPolicyFilter, PolicyFilter, Comparable

public abstract class AbstractDataMailPolicyFilter extends BasicMailPolicyFilter
  • Field Details

    • logger

      protected org.apache.log4j.Logger logger
  • Constructor Details

    • AbstractDataMailPolicyFilter

      public AbstractDataMailPolicyFilter()
  • Method Details

    • init

      public boolean init(Plugin plugin)
      Description copied from interface: PluginComponent
      Initialize the component with the given plugin configuration
      Specified by:
      init in interface PluginComponent
      Overrides:
      init in class BasicMailPolicyFilter
      Parameters:
      plugin - the calling plugin
      Returns:
      true if the component has been correctly initialized.
      See Also:
    • getFooterSeparator

      protected String getFooterSeparator()
      Returns footer separator
      Returns:
      String separator
    • generateAuthKey

      protected String generateAuthKey(Member mbr, Data data)
      Returns a Base64( Id + ';' + MD5(Id + Password))
      Parameters:
      mbr - the Member
      data - the data
      Returns:
      String base64 value
    • isValidAuthKey

      protected Data isValidAuthKey(Member mbr, String content)
      Parse mail content to find a valid authentication key and associated Data
      Parameters:
      mbr - the Member performing the reply
      content - the data text
      Returns:
      Data the crypted data or null
    • getContentFooter

      protected String getContentFooter(Member toMbr, Data data)
      Returns a default content footer for the given data
      Parameters:
      toMbr - the Member
      data - the data
      Returns:
      String footer
    • getContentFooter

      protected String getContentFooter(Member toMbr, Data data, String topic, String address)
      Returns a default content footer for the given data
      Parameters:
      toMbr - the Member
      data - the data
      topic - the mail topic
      address - the address to reply
      Returns:
      String footer