org.apache.james.transport.mailets
Class MailAttributesToMimeHeaders

java.lang.Object
  extended by org.apache.mailet.base.GenericMailet
      extended by org.apache.james.transport.mailets.MailAttributesToMimeHeaders
All Implemented Interfaces:
Mailet, MailetConfig

public class MailAttributesToMimeHeaders
extends GenericMailet

Convert attributes to headers

Sample configuration:


 <mailet match="All" class="MailAttributesToMimeHeaders">
 <simplemapping>org.apache.james.attribute1;
 headerName1</simplemapping>
 <simplemapping>org.apache.james.attribute2;
 headerName2</simplemapping> </mailet>
 


Constructor Summary
MailAttributesToMimeHeaders()
           
 
Method Summary
 void init()
           
 void service(Mail mail)
           
 
Methods inherited from class org.apache.mailet.base.GenericMailet
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetInfo, getMailetName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailAttributesToMimeHeaders

public MailAttributesToMimeHeaders()
Method Detail

init

public void init()
          throws javax.mail.MessagingException
Overrides:
init in class GenericMailet
Throws:
javax.mail.MessagingException
See Also:
GenericMailet

service

public void service(Mail mail)
Specified by:
service in interface Mailet
Specified by:
service in class GenericMailet
See Also:
GenericMailet


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