|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mailet.GenericMailet
org.apache.james.transport.mailets.RemoveMailAttribute
public class RemoveMailAttribute
This mailet sets attributes on the Mail. Sample configuration: <mailet match="All" class="RemoveMailAttribute"> <name>attribute_name1</name> <name>attribute_name2</name> </mailet>
| Constructor Summary | |
|---|---|
RemoveMailAttribute()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getMailetInfo()
Return a string describing this mailet. |
void |
init()
Initialize the mailet |
void |
service(Mail mail)
Remove the configured attributes |
| Methods inherited from class org.apache.mailet.GenericMailet |
|---|
destroy, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoveMailAttribute()
| Method Detail |
|---|
public java.lang.String getMailetInfo()
getMailetInfo in interface MailetgetMailetInfo in class GenericMailet
public void init()
throws MailetException
init in class GenericMailetMailetException - if the processor parameter is missing
public void service(Mail mail)
throws javax.mail.MessagingException
service in interface Mailetservice in class GenericMailetmail - the mail to process
javax.mail.MessagingException - in all cases
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||