Hello,
Thank you for posting in Q&A forum.
We noticed that you raised two identical questions. We focused on answering another question. Please refer to:
Windows Server 2022 - Outlook 365 - IMAP - Search body - Microsoft Q&A
Best regards,
Jill Zhou
If the Answer is helpful, please click "Accept Answer" and upvote it.