You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Benoît Oury (Created JIRA)" <ji...@apache.org> on 2012/04/10 16:19:16 UTC

[jira] [Created] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

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: Trivial


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

       

[jira] [Assigned] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-5159:
----------------------------------

    Assignee: Claus Ibsen
    
> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: copyTo_imap_copy_option.patch, copyTo_imap_copy_option_from_headers.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

       

[jira] [Commented] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

Posted by "Daniel Beland (JIRA)" <ji...@apache.org>.
    [ 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

       

[jira] [Updated] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

Posted by "Claus Ibsen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-5159:
-------------------------------

              Priority: Minor  (was: Trivial)
         Fix Version/s: 2.10.0
                Labels:   (was: features)
    Remaining Estimate:     (was: 1h)
     Original Estimate:     (was: 1h)
    
> 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

       

[jira] [Updated] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

Posted by "Benoît Oury (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoît Oury updated CAMEL-5159:
-------------------------------

    Attachment: copyTo_imap_copy_option.patch

Add "copyTo" option to camel-mail component
                
> 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: Trivial
>              Labels: features
>         Attachments: copyTo_imap_copy_option.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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

       

[jira] [Resolved] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5159.
--------------------------------

    Resolution: Fixed

Thanks for the patches.
                
> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: copyTo_imap_copy_option.patch, copyTo_imap_copy_option_from_headers.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

       

[jira] [Commented] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260670#comment-13260670 ] 

Claus Ibsen commented on CAMEL-5159:
------------------------------------

Daniel thanks for the patch. Can you re-attach the patch and this time mark [x] in grant license to Apache
                
> 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

       

[jira] [Commented] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

Posted by "Daniel Beland (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261393#comment-13261393 ] 

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


I didn't submit the original patch, so I'm not sure what's the procedure to submit a patch over another patch in term of granting license?

Should I submit a patch with all the modifications (Benoit + mine) or only my proposed modifications on top of Benoit's?

                
> 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

       

[jira] [Updated] (CAMEL-5159) Allow copying email into specific folder after consuming on imap consumer

Posted by "Daniel Beland (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Beland updated CAMEL-5159:
---------------------------------

    Attachment: copyTo_imap_copy_option_from_headers.patch

Hi,

I've attached a patch against camel-mail-2.9.2.

It contains the original patch from Benoît and some extra lines to read the copyTo and delete configuration from the message headers.

Cheers
                
> 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, copyTo_imap_copy_option_from_headers.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