| com.quadcap.pop3.client.MessageHook
All known Subclasses: com.quadcap.pop3.client.HookShell, com.quadcap.pop3.client.MailSuck,
MessageHook | public interface MessageHook (Code) | | Interface for message delivery.
author: Stan Bailes |
Method Summary | |
public void | init(Properties p) | public boolean | passAllHeaders() Return true if the call to
boolean passHeaders(Map headers) will always return
true, so the message receiver can avoid calling it. | public boolean | passHeaders(Map headers) A hook first gets called with the parsed headers from the message. | public boolean | passMessage(InputStream is) The hook is called to process the entire message (including headers)
as an octet stream. |
passAllHeaders | public boolean passAllHeaders()(Code) | | Return true if the call to
boolean passHeaders(Map headers) will always return
true, so the message receiver can avoid calling it.
|
passHeaders | public boolean passHeaders(Map headers)(Code) | | A hook first gets called with the parsed headers from the message.
If the hook returns 'true' to this call, it will be called again
to process the body using sendMessage() , below.
|
passMessage | public boolean passMessage(InputStream is) throws Exception(Code) | | The hook is called to process the entire message (including headers)
as an octet stream.
false if the message is to be retained inthe store, true to delete it. |
|
|