What are the imap search command operators supported by outlook?

Aryan - Ai Bloq 20 Reputation points

I have tried following operators:

  • OR
  • NOT

But when I tried KEYWORD operator it gives me an error. Is there a way to use outlook inbox raw query directly in outlook imap search command as can be gone in gmail imap via extension X-GM-RAW operator?

A family of Microsoft email and calendar products.
2,645 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,304 questions
0 comments No comments
{count} votes

Accepted answer
  1. ITSRawlinz Jeff 80 Reputation points Student Ambassador

    Hi Aryan,

    In Outlook IMAP search command, the supported search operators are limited compared to some other email providers like Gmail. The operators you mentioned, such as "SINCE," "SUBJECT," "OR," and "NOT," are indeed supported by Outlook IMAP search.

    However, the "KEYWORD" operator you tried is not supported in Outlook IMAP search. Outlook doesn't have a direct equivalent to Gmail's "X-GM-RAW" extension, which allows you to use raw search queries directly in Gmail IMAP.

    In Outlook, the available search operators are generally standard IMAP search operators, and the functionality might not be as advanced or flexible as what you can achieve with Gmail's "X-GM-RAW" extension.

    If you need more advanced search capabilities in Outlook, you might consider using the Outlook API or Microsoft Graph API, which provide more extensive search functionalities. Keep in mind that using APIs might require additional programming or development work compared to directly using IMAP commands.

    Let me know if you have any other questions or if there's anything else I can help you with!

    Jeffrey Rowlings

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. ChristyZhang-MSFT 19,111 Reputation points Microsoft Vendor

    Hi @Aryan - Ai Bloq ,

    Welcome to our forum!

    But when I tried KEYWORD operator it gives me an error.

    What exactly do you want to search? And what error did you receive?

    Please refer to this article to help you use AND, NOT, OR, <, >, =, and other operators to refine your search:

    Search reference tables

    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.