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

camel-mail - MaxMessagesPerPoll / FetchSize should ignore unfetchable mails

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.15.0
    • 3.16.0
    • camel-mail
    • None
    • Unknown

    Description

      Mailboxes can contain mails that can not be fetched and therefore can not be processed. These mails will not be processed but will be counted as part of the poll (MaxMessagesPerPoll / FetchSize). Unfetchable mails should not be part of the poll to avoid that message processing is blocked due to these mails.

       

      Example for unfetchable mail:

      • mails with attachments that have an empty name

       

      Example Mail:
      Return-Path: <some@mail.com>
      Received: from host.docker.internal ([xxx.xx.xx.xx])
      by smtp.somemail.com with ESMTPSA id gs18-20020a170906f19200b006d03cfb15e4sm1396942ejb.xxx.xxx.xxx.xx
      for <some@mail.com>
      (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
      Fri, 25 Feb 2022 11:55:31 -0800 (PST)
      Date: Fri, 25 Feb 2022 20:55:29 +0100 (CET)
      From: some@mail.com
      To: some@mail.com
      Message-ID: <510113906.1.1645818929577@host.docker.internal>
      Subject: This is the mail subject
      MIME-Version: 1.0
      Content-Type: multipart/mixed; boundary="----=_Part_0_932607259.1645818929513"

      ------=_Part_0_932607259.1645818929513
      Content-Type: text/plain; charset=us-ascii
      Content-Transfer-Encoding: 7bit

      This is the message body
      ------=_Part_0_932607259.1645818929513
      Content-Type: image/jpeg; name=""
      Content-Transfer-Encoding: base64
      Content-Disposition: attachment; filename=""

      --{}{}{}=_Part_0_932607259.1645818929513{}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mash-sap Manuel Shenavai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: