Updating Your Search Folder

So you have created your handy search folder that will save you hours of time wading through old e-mails. But, oh! You didn’t mean to look for status in your subject line! You meant to look for statii.[219] Of course, you could delete the folder and create a new one with your updated search criteria. Instead, it’s best to simply update your existing search folder and set the new search criteria as shown in Example 15-25.

Example 15-25. UpdateFolder call to change the search folder restriction

<UpdateFolder xmlns=".../messages"
              xmlns:t=".../types">
  <FolderChanges>
    <t:FolderChange>
      <t:FolderId Id="AAAtAEFkbWl...
      <t:Updates>
        <t:SetFolderField>
          <t:FieldURI FieldURI="folder:SearchParameters"/>
          <t:SearchFolder> <t:SearchParameters ...

Get Inside Microsoft® Exchange Server 2007 Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.