You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Christoph Läubrich (JIRA)" <ji...@apache.org> on 2014/11/21 14:14:34 UTC

[jira] [Comment Edited] (CAMEL-8068) SplitAttachmentsExpression should set ID of splited attachment

    [ https://issues.apache.org/jira/browse/CAMEL-8068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220882#comment-14220882 ] 

Christoph Läubrich edited comment on CAMEL-8068 at 11/21/14 1:13 PM:
---------------------------------------------------------------------

Attached a patch that set header "CamelSplitAttachmentId" with the attachment ID on the copy message.


was (Author: laeubi):
Set Header "CamelSplitAttachmentId" with the attachment ID on the copy message

> SplitAttachmentsExpression should set ID of splited attachment
> --------------------------------------------------------------
>
>                 Key: CAMEL-8068
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8068
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.14.0
>            Reporter: Christoph Läubrich
>            Priority: Minor
>              Labels: patch
>         Attachments: CAMEL-8068.patch
>
>
> The https://svn.apache.org/repos/asf/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/SplitAttachmentsExpression.java currently splits the attachments by each ID but do not provide the ID as an additional header.
> It would be usefull for the processing code to know the ID so they simply get them e.g. by getAttachment(header[CamelSplitAttachmentName]) instead of looking in the map for names etc. or iterate over it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)