Sample Download : http://code.msdn.microsoft.com/How-to-Get-Inbox-Rules-in-98bc6d45
Currently, most of you manage email messages by inbox rules. Especially, when you become an owner of a shared mailbox, you find the former owner created a lot of inbox rules to manage email messages efficiently. But you need to modify these inbox rules to meet the new business needs. Before changing these inbox rules, you want to find a solution to document these inbox rules in case something goes wrong. But you don't have an out-of-box solution.
In this application, we will demonstrate how to get Inbox rules in Office 365:
1. Get the accounts that users input
2. Set the ImpersonatedUserId property if the login account has the impersonation permission.
3. Get Inbox rules of the accounts.
You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.