com.groiss.mail
Interface MailHandler


public interface MailHandler

The MailHandler interface allows you to write classes which perform some action on incoming mails.


Method Summary
 boolean receive(javax.mail.Message msg)
          Implement this method to perform some action with the mail message.
 

Method Detail

receive

boolean receive(javax.mail.Message msg)
                throws java.lang.Exception
Implement this method to perform some action with the mail message.

Parameters:
msg - the mail message
Returns:
true when the message should be deleted from the mailbox.
Throws:
java.lang.Exception


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.