Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7474

Error blocks mail-consumer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.3, 2.13.0
    • 2.15.1, 2.16.0
    • camel-mail
    • None
    • any

    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            stmhof Stefan Hof
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: