[
https://issues.apache.org/jira/browse/CAMEL-8067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220991#comment-14220991
]
Claus Ibsen commented on CAMEL-8067:
------------------------------------
You should use the mail attachments splitter so its
from mail
split mail attachments
to file
What can be enhanced is the mail attachments splitter to let it store the
attachment as the message body and set the name as a Exchange.FILE_NAME. So I
suggest you can take a look at extending this code to introduce an option to
configure enable this.
> Allow 'file' to use attachments content instead of body
> -------------------------------------------------------
>
> Key: CAMEL-8067
> URL: https://issues.apache.org/jira/browse/CAMEL-8067
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.14.0
> Reporter: Christoph Läubrich
>
> It would be nice if the file component would be able to save attachments to
> files (e.g. from the mail component).
> Currently I invoke a script that first fetch the attachment, get the input
> stream and then set it to the body. It would be nice if the file-component
> can do this directly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)