camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Beland (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer
Date Tue, 24 Apr 2012 12:37:35 GMT

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

Daniel Beland commented on CAMEL-5159:
--------------------------------------

It would be nice if the copyTo option could be set on a header on the message to override
the default configuration:

Message in = exchange.getIn();
MailConfiguration config = getEndpoint().getConfiguration();
String copyTo = in.getHeader("copyTo") != null ? (String) in.getHeader("copyTo") : config.getCopyTo();

We could then move the message into a different folder depending on the message content.
                
> Allow copying email into specific folder after consuming on imap consumer
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-5159
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5159
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-mail
>    Affects Versions: 2.9.1
>         Environment: works only with imap connections
>            Reporter: BenoƮt Oury
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: copyTo_imap_copy_option.patch
>
>
> Sometimes, it would be helpfull to copy or move the treated mail into a specific folder
after consuming it.
> The idea is to add an option "copyTo" to copy (or move if delete is true) the read message
in a treated" imap folder after consuming it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message