|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mailet.base.GenericMailet org.apache.jsieve.mailet.SieveMailboxMailet
public class SieveMailboxMailet
Executes a Sieve script against incoming mail. The script applied is based on the recipient.
Name | Required | Values | Role |
---|---|---|---|
verbose | No - defaults to false | true (ignoring case) to enable, otherwise disable | Enables verbose logging. |
Constructor Summary | |
---|---|
SieveMailboxMailet()
For SDI |
|
SieveMailboxMailet(Poster poster,
ResourceLocator locator)
CDI |
Method Summary | |
---|---|
ResourceLocator |
getLocator()
|
java.lang.String |
getMailetInfo()
Return a string describing this mailet. |
Poster |
getPoster()
|
void |
init()
|
void |
init(org.apache.mailet.MailetConfig config)
|
boolean |
isConsume()
Is this mailet GHOSTing all mail it processes? |
boolean |
isInfoLoggingOn()
Is informational logging turned on? |
boolean |
isQuiet()
Is the logging for this mailet set to minimal? |
boolean |
isVerbose()
Is this mailet logging verbosely? This property is set by init parameters. |
void |
service(org.apache.mailet.Mail mail)
Delivers a mail to a local mailbox. |
void |
setConsume(boolean consume)
Sets whether this mailet should GHOST all mail. |
void |
setLocator(ResourceLocator locator)
For SDI |
void |
setPoster(Poster poster)
For SDI |
void |
setQuiet(boolean quiet)
Sets the logging for this mailet to minimal. |
void |
setVerbose(boolean verbose)
Sets whether logging should be verbose for this mailet. |
void |
storeMail(org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
org.apache.mailet.Mail mail)
|
Methods inherited from class org.apache.mailet.base.GenericMailet |
---|
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SieveMailboxMailet()
public SieveMailboxMailet(Poster poster, ResourceLocator locator)
poster
- not nullMethod Detail |
---|
public ResourceLocator getLocator()
public void setLocator(ResourceLocator locator)
locator
- not nullpublic Poster getPoster()
public void setPoster(Poster poster)
poster
- not nullpublic boolean isConsume()
public void setConsume(boolean consume)
consume
- true when the mailet should consume all mail,
false otherwisepublic boolean isVerbose()
public void setVerbose(boolean verbose)
isQuiet()
.
verbose
- true when logging should be verbose,
false otherwisepublic boolean isQuiet()
public void setQuiet(boolean quiet)
setVerbose(boolean)
.
quiet
- true for minimal logging, false otherwisepublic boolean isInfoLoggingOn()
public void init(org.apache.mailet.MailetConfig config) throws javax.mail.MessagingException
init
in interface org.apache.mailet.Mailet
init
in class org.apache.mailet.base.GenericMailet
javax.mail.MessagingException
public void service(org.apache.mailet.Mail mail) throws javax.mail.MessagingException
service
in interface org.apache.mailet.Mailet
service
in class org.apache.mailet.base.GenericMailet
mail
- the mail being processed
javax.mail.MessagingException
- if an error occurs while storing the mailpublic java.lang.String getMailetInfo()
getMailetInfo
in interface org.apache.mailet.Mailet
getMailetInfo
in class org.apache.mailet.base.GenericMailet
public void storeMail(org.apache.mailet.MailAddress sender, org.apache.mailet.MailAddress recipient, org.apache.mailet.Mail mail) throws javax.mail.MessagingException
sender
- recipient
- mail
-
javax.mail.MessagingException
public void init() throws javax.mail.MessagingException
init
in class org.apache.mailet.base.GenericMailet
javax.mail.MessagingException
GenericMailet.init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |