org.apache.jsieve.mailet
Class ActionUtils

java.lang.Object
  extended by org.apache.jsieve.mailet.ActionUtils

public class ActionUtils
extends java.lang.Object

Utility methods helpful for actions.


Constructor Summary
ActionUtils()
           
 
Method Summary
static void detectAndHandleLocalLooping(org.apache.mailet.Mail aMail, ActionContext context, java.lang.String anAttributeSuffix)
          Detect and handle locally looping mail.
static org.apache.mailet.MailAddress getSoleRecipient(org.apache.mailet.Mail aMail)
          Answers the sole intended recipient for aMail.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionUtils

public ActionUtils()
Method Detail

getSoleRecipient

public static org.apache.mailet.MailAddress getSoleRecipient(org.apache.mailet.Mail aMail)
                                                      throws javax.mail.MessagingException
Answers the sole intended recipient for aMail.

Parameters:
aMail -
Returns:
String
Throws:
javax.mail.MessagingException

detectAndHandleLocalLooping

public static void detectAndHandleLocalLooping(org.apache.mailet.Mail aMail,
                                               ActionContext context,
                                               java.lang.String anAttributeSuffix)
                                        throws javax.mail.MessagingException
Detect and handle locally looping mail. External loop detection is left to the MTA.

Parameters:
aMail -
context - not null
anAttributeSuffix -
Throws:
javax.mail.MessagingException


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.