Interface MailHandler2


public interface MailHandler2
The MailHandler interface allows you to write classes which perform some action on incoming mails.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Implement this method to perform some action with the mail message.
  • Method Details

    • receive

      boolean receive(Message msg, MailBox mb) throws Exception
      Implement this method to perform some action with the mail message.
      Parameters:
      msg - the mail message
      mb - the mailbox we read from
      Returns:
      true when the message should be deleted from the mailbox.
      Throws:
      Exception