This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch ready in repository https://gitbox.apache.org/repos/asf/camel.git
commit c9a7d30447908f271576b49b631799a02878f4fa Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Dec 7 09:56:50 2023 +0100 CAMEL-20189: camel-mail: Force marking the consumer ready sooner, in case downloading mail with big files takes too long, causing readiness check to timeout and fail. --- .../src/main/java/org/apache/camel/component/mail/MailConsumer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java index 15037708d41..4a818e112d9 100644 --- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java +++ b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java @@ -158,6 +158,9 @@ public class MailConsumer extends ScheduledBatchPollingConsumer { return 0; // return since we cannot poll mail messages, but will re-connect on next poll. } + // okay consumer is connected to the mail server + forceConsumerAsReady(); + try { int count = folder.getMessageCount(); if (count > 0) {