GetInboxRulesΒΆ

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.

Examples:

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(
    'first.last@company.com',
    'mypassword123'
)

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