[
https://issues.apache.org/jira/browse/CAMEL-5980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558694#comment-13558694
]
Axel Roeber commented on CAMEL-5980:
------------------------------------
if have tried to strip the email to minimal size, so don't be confused that the
PDF attachments can't be opened within the email client.
But this email (file) can be opened and viewed by Outlook and Thunderbird
without any errors.
Currently I am using a CustomMailBinding with a modified
extractAttachmentsFromMultipart:
...
if (part.isMimeType("multipart/*")) {
LOG.trace("Part #" + i + ": is mimetype: multipart/*");
extractAttachmentsFromMultipart((Multipart) part.getContent(),
map);
} else {
String disposition = "";
try {
disposition = part.getDisposition();
} catch(ParseException ex) {
LOG.trace("part.getDisposition failed:", ex);
}
String filename = null ;
try {
filename = part.getFileName();
} catch(ParseException ex) {
LOG.trace("part.getFileName failed:", ex);
}
...
because part.getFileName and part.getDisposition seems to fail in this mail.
> camel-mail - Better handle null values when extracting attachments
> ------------------------------------------------------------------
>
> Key: CAMEL-5980
> URL: https://issues.apache.org/jira/browse/CAMEL-5980
> Project: Camel
> Issue Type: Improvement
> Components: camel-mail
> Affects Versions: 2.9.0, 2.10.0
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: Future
>
> Attachments: Exception Mail.eml
>
>
> See nabble
> http://camel.465427.n5.nabble.com/MailComponent-s-claim-to-handle-special-mail-multipart-formats-and-attachments-tp5724859.html
> We should see if we can fix the Camel code to handle those null data.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira