Hi,
how can I extract the filename from an included email.
If I use mimeMessageParser.getAttachmentList() and then
dataSource.getName() but I received null for attched emails.
The incoming email was created with outlook (html-email) and via
drag-n-drop I include an other email as an attachment.
To resolve this behavior I patched the Methode "getDataSourceName" in
"MimeMessageParser" as follows.
...
if ("message/rfc822".equalsIgnoreCase(contentType)) {
result = ((Message) part.getContent()).getSubject();
if (StringUtils.isNotBlank(result)) {
result += ".eml";
} else {
result = "unknown.eml";
}
...
(I stripped some null-checks)
Do you have an other solution?
Thx in advance
Olaf