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 setConstructor 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)
JamesMessageHook
onMessage
in interface JamesMessageHook
JamesMessageHook.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
InitializingLifecycleAwareProtocolHandler
Configuration
init
in interface InitializingLifecycleAwareProtocolHandler
org.apache.commons.configuration.ConfigurationException
public void destroy()
destroy
in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandler
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.