1 9 package org.jboss.net.axis.transport.mailto; 10 11 import java.io.InputStream ; 12 13 import javax.mail.MessagingException ; 14 import javax.mail.Session ; 15 import javax.mail.internet.MimeMessage ; 16 17 27 public class MailMessage extends MimeMessage 28 { 29 protected String messageID; 30 31 35 public MailMessage(MimeMessage arg0) throws MessagingException 36 { 37 super(arg0); 38 } 40 43 public MailMessage(Session arg0) 44 { 45 super(arg0); 46 } 48 53 public MailMessage(Session arg0, InputStream arg1) throws MessagingException 54 { 55 super(arg0, arg1); 56 } 58 59 63 protected void updateHeaders() throws MessagingException 64 { 65 super.updateHeaders(); 66 if (messageID != null) 67 setHeader("Message-ID", messageID); 68 } 69 70 73 public String getMessageID() 74 { 75 return this.messageID; 76 } 77 78 82 public void setMessageID(String id) 83 { 84 this.messageID = id; 85 } 86 } | Popular Tags |