You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Stefan Hof (JIRA)" <ji...@apache.org> on 2014/05/30 12:03:01 UTC

[jira] [Created] (CAMEL-7474) Error blocks mail-consumer

Stefan Hof created CAMEL-7474:
---------------------------------

             Summary: Error blocks mail-consumer
                 Key: CAMEL-7474
                 URL: https://issues.apache.org/jira/browse/CAMEL-7474
             Project: Camel
          Issue Type: Bug
          Components: camel-mail
    Affects Versions: 2.13.0, 2.12.3
         Environment: any
            Reporter: Stefan Hof


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 and...

This endless circle cannot be broken, because the email cannot be marked as (unsuccessfully) processed.




--
This message was sent by Atlassian JIRA
(v6.2#6252)