Hi @Naveen Maddula
Thank you for posting your question in the Microsoft Q&A forum.
Based on the information you have provided, seems like you want to know how to read Outlook mails by using IMAP and Nestjs.
However, your concern is quite challenging especially with all the hard coding involved.
So, we recommend bringing this issue to the Tech Community forums for a deeper technical dive or to connect with others who may have encountered similar scenarios: Outlook | Microsoft Community Hub
There are many experienced developers and Microsoft specialists active there who can help troubleshoot and guide you through the process.
I hope this information helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.