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

ASF GitHub Bot commented on CAMEL-8569:
---------------------------------------

GitHub user svanders opened a pull request:

    https://github.com/apache/camel/pull/453

    8569 Ability to easily extract email attachments

    Pull request for feature request 
https://issues.apache.org/jira/browse/CAMEL-8569
    
    Ability to easily extract email attachments
    
    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://[email protected]?...
    .split(new SplitAttachmentsExpression())
    .to("file:///myAttachmentsFolder")
    ```
    doesn't work
    An improved splitter that decodes the mime parts into byte arrays would be 
more useful
    
    Added an alternative to SplitAttachmentsExpression called 
ExtractAttachmentsExpression
    which will split a (multipart) mime encoded email into new camel messages 
where the body of each message is the email attachment as a byte array, with a 
header "CamelSplitAttachmentName" containing the attachment name.
     

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/svanders/camel 
8569-AbilityToEasilyExtractEmailAttachments

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/453.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #453
    
----
commit 1cdb685115e802eb129454aad1fb2767c6e8a585
Author: Simon van der Sluis <[email protected]>
Date:   2015-03-29T22:42:37Z

    8569 Ability to easily extract email attachments
    
    Code + unit for feature request 8569-Ability to easily extract email 
attachments

----


> Ability to easily extract email attachments
> -------------------------------------------
>
>                 Key: CAMEL-8569
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8569
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.15.0
>            Reporter: Simon van der Sluis
>              Labels: features
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 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://[email protected]?...
>     .split(new SplitAttachmentsExpression())
>      .to("file:///myAttachmentsFolder")
> doesn't work
> An improved splitter that decodes the mime parts into byte arrays would be 
> more useful



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

Reply via email to