title: How do you search all items via Exchange IMAP?
body: <p>I am trying to perform an IMAP <code>uid_search</code> against an exchange server (office 365) to find all emails to/from a particular email address. The problem is that some clients have a prohibitively large number of folders.</p>
  
  <p>Using active sync, it appears that there is an <code>All Items</code> folder that can search all emails at once: <a href="https://stackoverflow.com/questions/7401080/exchange-web-services-ews-finditems-within-all-folders">Exchange Web Services (EWS) FindItems within All Folders</a>, however, I do not see the same folder in the IMAP folder list and am having to perform the query against each folder individually.</p>
  
  <p>Is there a way to search all emails in exchange using IMAP without having to search each folder?</p>