org.apache.jsieve.mailet
Class FileIntoAction

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

public class FileIntoAction
extends java.lang.Object
implements MailAction

Performs the filing of a mail into a specified destination.

Thread Safety

An instance maybe safe accessed concurrently by multiple threads.


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

Constructor Detail

FileIntoAction

public FileIntoAction()
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
Parameters:
action - not null
mail - not null
context - not null
Throws:
javax.mail.MessagingException - when action cannot be executed

execute

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

Executes the passed ActionFileInto.

This implementation accepts any destination with the root of INBOX.

As the current POP3 server does not support sub-folders, the mail is stored in the INBOX for the recipient of the mail and the full intended destination added as a prefix to the message's subject.

When IMAP support is added to James, it will be possible to support sub-folders of INBOX fully.

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


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