camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen Eitelmann (JIRA)" <>
Subject [jira] [Commented] (CAMEL-7474) Error blocks mail-consumer
Date Wed, 09 Dec 2015 14:41:11 GMT


Steffen Eitelmann commented on CAMEL-7474:

The solution only solves the issue with errors while retrieving the mails. If one of the received
mails is corrupt and the exchange cannot be created, this issue still exists. 

> Error blocks mail-consumer
> --------------------------
>                 Key: CAMEL-7474
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.12.3, 2.13.0
>         Environment: any
>            Reporter: Stefan Hof
>            Assignee: Claus Ibsen
>             Fix For: 2.15.1, 2.16.0
> If there is an error in the mail-consumer while consuming the mail, you cannot skip this
mail and move to the next:
> For example:
>       from("imaps://{{email.server}}?username={{email.username}}&password=RAW({{email.password}})"
>          + "&delete=true&copyTo={{email.folder}}/done&unseen=true& folderName={{email.folder}}"
>          + "&fetchSize=1&contentType=text/html")
> moves the processed mail in the "done"-subfolder of the email-folder, if everything is
ok, eg, the route finishes. 
> It is possible, to handle an error, _after_ the consumer starts the route, but if the
mail-consumer hits an error _before_ the route starts, the error will be logged and nothing
more happens. This means, the processed mail remains unchanged in in the email-folder and
will be the next polled email, that leads to the same error, where the error will be logged
> This endless circle cannot be broken, because the email cannot be marked as (unsuccessfully)

This message was sent by Atlassian JIRA

View raw message