title: How to use Outlook's AdvancedSerach to find expiring e-mail via assigned server policy
body: <p>I am attempting to find all expiring e-mails via Advanced Search method provided below.  Optimistically, I hoped that their searches <a href="http://support.microsoft.com/kb/2457735" rel="nofollow" title="this">in articles such as this</a>, and <a href="http://community.office365.com/en-us/forums/158/t/150622.aspx" rel="nofollow">this</a> which suggests using 'expires:&lt;=the next month' would do the trick, but it does not.</p>
  
  <pre><code>string filter = String.Format("expires:&lt;=next month");
  string scope = "'" + inboxFolder.FolderPath + "'";
  Outlook.Search search = Globals.ThisAddIn.Application.AdvancedSearch(scope, filter, true, "Expiring Retention Policy Mail");
  </code></pre>
  
  <p>When attmepting to run the above code, I receive the error <em>'the operation failed'</em></p>
  
  <p>Here is the <a href="http://msdn.microsoft.com/en-us/library/aa965711%28v=VS.85%29.aspx" rel="nofollow">reference</a>
  to the Advanced Search Query provided by Microsoft which has no mention of expiration policy.  <strong>Does anybody know the Advanced Search Query equivalent to the expires:&lt;=next month feature?</strong></p>