Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.15.0
-
Fix Version/s: 2.16.0
-
Component/s: camel-mail
-
Labels:
-
Patch Info:Patch Available
-
Estimated Complexity:Moderate
Description
The existing support for splitting an email by it's attachments (org.apache.camel.component.mail.SplitAttachmentsExpression) is limiting that the attachments are still mime encoded, and cannot be easily used by the next stage in a route.
e.g.
from("pop3://james@mymailserver.com?...
.split(new SplitAttachmentsExpression())
.to("file:///myAttachmentsFolder")
doesn't work
An improved splitter that decodes the mime parts into byte arrays would be more useful