GetInboxRulesWithMailboxSmtpAddress method

Future<RuleCollection> GetInboxRulesWithMailboxSmtpAddress(
  1. String mailboxSmtpAddress
)
Retrieves the inbox rules of the specified user. The SMTP address of the user whose inbox rules should be retrieved.

Implementation

Future<RuleCollection> GetInboxRulesWithMailboxSmtpAddress(
  String mailboxSmtpAddress,
) async {
  EwsUtilities.ValidateParam(mailboxSmtpAddress, "MailboxSmtpAddress");

  GetInboxRulesRequest request = GetInboxRulesRequest(this);
  request.MailboxSmtpAddress = mailboxSmtpAddress;

  return (await request.Execute()).Rules;
}