public class MailPriorityHandler extends Object implements JamesMessageHook, InitializingLifecycleAwareProtocolHandler
Mail priority for the mail.
if the Mail has more then one recipient, then the highest priority
(which was found) is set| Constructor and Description |
|---|
MailPriorityHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init(org.apache.commons.configuration.Configuration config)
Init with the given
Configuration |
org.apache.james.protocols.smtp.hook.HookResult |
onMessage(org.apache.james.protocols.smtp.SMTPSession session,
org.apache.mailet.Mail mail)
Handle Message
|
public org.apache.james.protocols.smtp.hook.HookResult onMessage(org.apache.james.protocols.smtp.SMTPSession session,
org.apache.mailet.Mail mail)
JamesMessageHookonMessage in interface JamesMessageHookJamesMessageHook.onMessage(org.apache.james.protocols.smtp.SMTPSession,
org.apache.mailet.Mail)public void init(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
InitializingLifecycleAwareProtocolHandlerConfigurationinit in interface InitializingLifecycleAwareProtocolHandlerorg.apache.commons.configuration.ConfigurationExceptionpublic void destroy()
destroy in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandlerCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.