Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.6.0
-
None
-
Patch Available
-
Unknown
Description
see http://camel.465427.n5.nabble.com/Camel-Email-Component-Missing-Attachments-td3386382.html#a5727102
The disposition field is optional(see RFC 2183), so it is possible that camel misses attachments.
if (disposition != null && (disposition.equalsIgnoreCase(Part.ATTACHMENT) || disposition.equalsIgnoreCase(Part.INLINE))) { // only add named attachments String fileName = part.getFileName(); if (fileName != null) { LOG.debug("Mail contains file attachment: " + fileName); // Parts marked with a disposition of Part.ATTACHMENT are clearly attachments CollectionHelper.appendValue(map, fileName, part.getDataHandler()); } }
Adding the fileName check to the if should resolve the issue.
Attachments
Attachments
Issue Links
- relates to
-
CAMEL-20028 camel-mail - Missing attachments if disposition not set
- Resolved