SearchMailboxes¶
This documentation provides details about the SearchMailboxes class within the pyews
package.
This class is used to search users mailboxes for a specific item.
-
class
pyews.endpoint.searchmailboxes.
SearchMailboxes
(query, reference_id, search_scope='All')¶ Searches one or more reference id’s using the provided query and search_scope.
- Args:
- query (str): The Advanced Query Syntax (AQS) to search with. reference_id (list): One or more mailbox reference Id’s search_scope (str, optional): The search scope. Defaults to ‘All’.
- Raises:
- UknownValueError: The provided search scope is unknown.
-
RESULTS_KEY
= 'SearchPreviewItem'¶
-
SEARCH_SCOPES
= ['All', 'PrimaryOnly', 'ArchiveOnly']¶
-
soap
()¶