|
||||||||||
| 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.SetMimeHeader
public class SetMimeHeader
Adds a specified header and value to the message.
Sample configuration:
| Constructor Summary | |
|---|---|
SetMimeHeader()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getMailetInfo()
Return a string describing this mailet. |
void |
init()
Initialize the mailet. |
void |
service(Mail mail)
Takes the message and adds a header to it. |
| 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 SetMimeHeader()
| Method Detail |
|---|
public void init()
throws javax.mail.MessagingException
init in class GenericMailetjavax.mail.MessagingException - if an exception occurs that interrupts the mailet's normal operationpublic void service(Mail mail)
service in interface Mailetservice in class GenericMailetmail - the mail being processed
javax.mail.MessagingException - if an error arises during message processingpublic java.lang.String getMailetInfo()
getMailetInfo in interface MailetgetMailetInfo in class GenericMailet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||