|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mailet.base.GenericMailet
org.apache.james.transport.mailets.SetMimeHeader
public class SetMimeHeader
Adds a specified header and value to the message.
Sample configuration:
<mailet match="All" class="AddHeader">
<name>X-MailetHeader</name>
<value>TheHeaderValue</value>
</mailet>
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.base.GenericMailet |
---|
arrayToString, checkInitParameters, destroy, getInitParameter, 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 GenericMailet
javax.mail.MessagingException
public void service(Mail mail)
service
in interface Mailet
service
in class GenericMailet
mail
- the mail being processedpublic java.lang.String getMailetInfo()
getMailetInfo
in interface Mailet
getMailetInfo
in class GenericMailet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |