org.apache.jsieve.mailet
Interface ActionContext

All Known Implementing Classes:
SieveMailAdapter

public interface ActionContext

Provides context for action execution.


Method Summary
 org.apache.commons.logging.Log getLog()
          Gets the log.
 java.lang.String getServerInfo()
          Gets name (including version) of this server.
 void post(org.apache.mailet.MailAddress sender, java.util.Collection recipients, javax.mail.internet.MimeMessage mail)
          Posts the given mail.
 void post(java.lang.String uri, javax.mail.internet.MimeMessage mail)
          Experimental mail delivery.
 

Method Detail

getLog

org.apache.commons.logging.Log getLog()
Gets the log.

Returns:
not null

post

void post(java.lang.String uri,
          javax.mail.internet.MimeMessage mail)
          throws javax.mail.MessagingException
Experimental mail delivery. POST verb indicate that mail should be attached to the collection indicated by the given URI.

Parameters:
uri - indicates the destination to which the mail to added. ATM the value should be mailbox://@localhost/
mail - not null
Throws:
javax.mail.MessagingException

post

void post(org.apache.mailet.MailAddress sender,
          java.util.Collection recipients,
          javax.mail.internet.MimeMessage mail)
          throws javax.mail.MessagingException
Posts the given mail.

Parameters:
sender - possibly null
recipients - not null
mail - not null
Throws:
javax.mail.MessagingException - when mail cannot be posted

getServerInfo

java.lang.String getServerInfo()
Gets name (including version) of this server.

Returns:
not nul


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