FileDocCategorySizeDatePackage
RemoveAllMailAttributes.javaAPI DocApache James 2.3.12171Fri Jan 12 12:56:30 GMT 2007org.apache.james.transport.mailets

RemoveAllMailAttributes

public class RemoveAllMailAttributes extends org.apache.mailet.GenericMailet
This mailet sets removes all attributes set on the Mail instance Sample configuration: <mailet match="All" class="RemoveAllMailAttributes"/>
version
CVS $Revision: 494012 $ $Date: 2007-01-08 11:23:58 +0100 (Mo, 08 Jan 2007) $
since
2.2.0

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetMailetInfo()
Return a string describing this mailet.

return
a string describing this mailet

        return "Remove All Mail Attributes Mailet";
    
public voidservice(org.apache.mailet.Mail mail)
Removes all attributes on the Mail

param
mail the mail to process
throws
MessagingException in all cases

        mail.removeAllAttributes ();