Package org.imixs.workflow.importer.mail
Class MailMessageService
java.lang.Object
org.imixs.workflow.importer.mail.MailMessageService
The MessageService provides methods attach Message objects as a file to a
workitem.
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachHTMLMessage(jakarta.mail.Message message, org.imixs.workflow.ItemCollection workitem) This method extracts a HTML representation from a MimeMessage and adds the HTML file to a given workitem.voidattachMessage(jakarta.mail.Message message, org.imixs.workflow.ItemCollection workitem) This method attaches a Mail Message object as a .eml file to a given workitem.voidattachPDFMessage(jakarta.mail.Message message, org.imixs.workflow.ItemCollection workitem, String gotebergServiceEndpoint) This method extracts a HTML representation from a MimeMessage and converts the HTML into a PDF file by using the Goteberg Sevice.
-
Constructor Details
-
MailMessageService
public MailMessageService()
-
-
Method Details
-
attachHTMLMessage
public void attachHTMLMessage(jakarta.mail.Message message, org.imixs.workflow.ItemCollection workitem) throws IOException, jakarta.mail.MessagingException This method extracts a HTML representation from a MimeMessage and adds the HTML file to a given workitem.The name of the attached file is _subject_.html
- Parameters:
message-- Throws:
jakarta.mail.MessagingExceptionIOException
-
attachPDFMessage
public void attachPDFMessage(jakarta.mail.Message message, org.imixs.workflow.ItemCollection workitem, String gotebergServiceEndpoint) throws IOException, jakarta.mail.MessagingException This method extracts a HTML representation from a MimeMessage and converts the HTML into a PDF file by using the Goteberg Sevice. The method adds the PDF file to a given workitem.The name of the attached file is _subject_.html
- Parameters:
message-- Throws:
jakarta.mail.MessagingExceptionIOException
-
attachMessage
public void attachMessage(jakarta.mail.Message message, org.imixs.workflow.ItemCollection workitem) throws IOException, jakarta.mail.MessagingException This method attaches a Mail Message object as a .eml file to a given workitem.The name of the attached file is _subject_.eml
- Parameters:
message-- Throws:
jakarta.mail.MessagingExceptionIOException
-