My goal is : for any received mail,
- get the text body with html tags
- send to existing Rest WS to convert mail body to PDF/A
- archive the PDF and delete the mail.
I couldn't imagine that it would be such a pain !
I tried some parts of your code, but it seems like the tags are removed BEFORE
e
Hi,
It's a little bit more complicated.
First, you have to know if the body mail is string or multipart or Nested
Because
if body is string, the mail doesn’t contain HTML content !
if body is multi-part, it can contains NestedMessage ( mail message in
attachment )
I didn't recommend wor