This documentation provides details about the GetInboxRules class within the pyews package.

This class is used to get mailbox rules from the specified user mailbox.

Retrieves inbox (mailbox) rules for a specified email address.


To use any service class you must provide a UserConfiguration object first. Like all service classes, you can access formatted properties from the EWS endpoint using the response property.

If you want to retrieve the inbox rules for a specific email address you must provide it when creating a GetInboxRules object.

from pyews import UserConfiguration
from pyews import GetInboxRules

userconfig = UserConfiguration(

inboxRules = GetInboxRules(userconfig).run('')
smtp_address (str): The email address you want to get inbox rules for userconfiguration (UserConfiguration): A UserConfiguration object created using the UserConfiguration class