1 17 18 package org.apache.james.transport.mailets; 19 20 import org.apache.mailet.GenericMailet; 21 import org.apache.mailet.Mail; 22 import org.apache.mailet.MailetException; 23 import javax.mail.MessagingException ; 24 25 34 public class RemoveAllMailAttributes extends GenericMailet { 35 36 41 public String getMailetInfo() { 42 return "Remove All Mail Attributes Mailet"; 43 } 44 45 52 public void service(Mail mail) throws MessagingException { 53 mail.removeAllAttributes (); 54 } 55 56 57 } 58 | Popular Tags |