[ 
https://issues.apache.org/jira/browse/CAMEL-3908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Donald Whytock updated CAMEL-3908:
----------------------------------

    Attachment: MailConsumer.java

> Prevent "FolderNotOpen" exception when closing out an email exchange
> --------------------------------------------------------------------
>
>                 Key: CAMEL-3908
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3908
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.7.1
>            Reporter: Donald Whytock
>         Attachments: MailConsumer.java
>
>
> When an email exchange is complete it should set either the SEEN or DELETED 
> flags in the folder on the email server.  But if the folder isn't open, 
> either because of automatic closing or timeout, attempting to set the flag 
> results in a FolderNotOpen exception.  The attached version of MailConsumer 
> includes a check in processCommit() that opens the folder if it's not open at 
> exchange completion.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to