org.apache.jsieve.mailet
Class KeepAction

java.lang.Object
  extended by org.apache.jsieve.mailet.FileIntoAction
      extended by org.apache.jsieve.mailet.KeepAction
All Implemented Interfaces:
MailAction

public class KeepAction
extends FileIntoAction
implements MailAction

Performs the filing of a mail into the inbox.

Thread Safety

An instance maybe safe accessed concurrently by multiple threads.


Constructor Summary
KeepAction()
           
 
Method Summary
 void execute(ActionKeep anAction, org.apache.mailet.Mail aMail, ActionContext context)
           Executes the passed ActionKeep.
 void execute(Action action, org.apache.mailet.Mail mail, ActionContext context)
          Executes the given action.
 
Methods inherited from class org.apache.jsieve.mailet.FileIntoAction
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepAction

public KeepAction()
Method Detail

execute

public void execute(Action action,
                    org.apache.mailet.Mail mail,
                    ActionContext context)
             throws javax.mail.MessagingException
Description copied from interface: MailAction
Executes the given action.

Specified by:
execute in interface MailAction
Overrides:
execute in class FileIntoAction
Parameters:
action - not null
mail - not null
context - not null
Throws:
javax.mail.MessagingException - when action cannot be executed

execute

public void execute(ActionKeep anAction,
                    org.apache.mailet.Mail aMail,
                    ActionContext context)
             throws javax.mail.MessagingException

Executes the passed ActionKeep.

In this implementation, "keep" is equivalent to "fileinto" with a destination of "INBOX".

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


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