Package org.subethamail.wiser
Class WiserMessage
java.lang.Object
org.subethamail.wiser.WiserMessage
This class wraps a received message and provides
a way to generate a JavaMail MimeMessage from the data.
- Author:
- Jon Stevens
-
Method Summary
Modifier and TypeMethodDescriptionvoiddumpMessage(PrintStream out) Dumps the rough contents of the message for debugging purposesbyte[]getData()Get's the raw message DATA.Get's the RCPT TO:Get's the MAIL FROM:jakarta.mail.internet.MimeMessageGenerate a JavaMail MimeMessage.toString()Implementation of toString()
-
Method Details
-
getMimeMessage
public jakarta.mail.internet.MimeMessage getMimeMessage() throws jakarta.mail.MessagingExceptionGenerate a JavaMail MimeMessage.- Throws:
jakarta.mail.MessagingException
-
getData
public byte[] getData()Get's the raw message DATA. -
getEnvelopeReceiver
Get's the RCPT TO: -
getEnvelopeSender
Get's the MAIL FROM: -
dumpMessage
Dumps the rough contents of the message for debugging purposes- Throws:
jakarta.mail.MessagingException
-
toString
Implementation of toString()
-