Hello, Thanks for the response.
We have another question : if your team has the plan or is already developing camel-Microsoft-mail components to use oauth2? If yes, could you tell us the expected date on Prod? Thanks again. Best regards Qianyan SUN De : Claus Ibsen <claus.ib...@gmail.com<mailto:claus.ib...@gmail.com>> Envoyé : mercredi 24 août 2022 14:11 À : dev <dev@camel.apache.org<mailto:dev@camel.apache.org>> Cc : Jean Louis BOYER <jl.bo...@cohor.org<mailto:jl.bo...@cohor.org>> Objet : Re: Could camel component support IMAP Url by using oauth2 access Token to connecte Exchange Hotmail? Hi The camel-mail component uses the javax mail API which AFAIK does not support oauth2 - or at least back in the days when I was fiddling with this APIs then oauth2 wasn't a thing. Anyone knows? If not then maybe there is a way to plugin this, or if not, then maybe microsoft has some other APIs you can use with oauth2 to access their mail service. For example google has that for gmail where we have camel-google-mail components for that. On Wed, Aug 24, 2022 at 7:21 AM Qianyan SUN <q....@cohor.org<mailto:q....@cohor.org>> wrote: Hello, Dear developers I am writing to you to demand that if Camel could support IMAP URL to connect Exchange Hotmail by authentication Xoauth2? Because we have developed a tool application .EXE on the Apache Camel Framework, which uses basic authentication (IMAPS/SMTP) to receive and send emails, this program makes it possible to read and convert messages received by email into a text file. And this tool is used by 2 mailboxes of Prod & Preprod (under Microsoft 365 Business Standard license) dedicated to data exchanges . Our application now exist which is an .EXE program, connects IMAP to the Server Exchange in Basic Authentication from("{{route1.imap.protocol}}://{{route1.imap.host}}?username={{route1.imap.username}}&password={{route1.imap.password}}&debugMode=true" + "&consumer.delay={{route1.consumer.delay}}&fetchSize={{route1.fetchSize}}{{route1.otherOptions}}") But Microsoft announced that they will end basic authentication protocols on October 1 , and favor only the use of the oauth2 protocol for any type of POP, IMAP, SMTP connection.. We know we could use plain java for the oauth2, but there will be a big job to refactor our code. And we couldn't find any camel component to support oauth2 IMAP Url connection with access Token. So that's the reason I am writing to you if your teams have the solution to support Oauth2 access Token connection by using IMAP url? Thank you very much for the response. Best regards Qianyan SUN -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2