Office365 supports IMAP the connection details are https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353 , However this isn't the Graph API and generally most people disable or don't allow IMAP and POP anymore due to the security issues around it. The Microsoft Graph API is just a REST API so you want to use it in Camel then you would consume it like any other Rest API eg https://www.javainuse.com/camel/camel-consume-rest , there is Java SDK that you should be able use https://github.com/microsoftgraph/msgraph-sdk-java to make doing the integration a lot easier.
Read outlook mails dynamically via APACHE CAMEL
Ashwin P.S
1
Reputation point
HI Team,
We need a support to integrate Apache camel with Microsoft Graph API to read mails dynamically as soon as we receive. Apache Camel provides support for IMAP / POP3 / SMTP. Please help us on this integration. Kindly let us know if any of these protocols are supported. For Authentication we'll be working with MailAuthenticator. Please provide support to pass the generated token into the MailAuthenticator to receive Emails Dynamically
Please find the Apache Camel Documentation Url - https://camel.apache.org/components/3.13.x/mail-component.html
Microsoft Security | Microsoft Graph
13,722 questions