title: Get all mails in outlook from a specific folder
body: <p>I would like to get all mails in outlook from a specific folder:</p>
  
  <p>My folder structure:</p>
  
  <p><img src="https://i.stack.imgur.com/engwA.png" alt="My folder structure"></p>
  
  <p>I find this <a href="https://stackoverflow.com/questions/2055811/get-unread-mails-from-outlook">Code</a> to get all mails in outlook inbox folder (not the inbox in picture!):</p>
  
  <pre><code>Outlook.Application oApp;
  Outlook._NameSpace oNS;
  Outlook.MAPIFolder oFolder;
  Outlook._Explorer oExp;
  
  oApp = new Outlook.Application();
  oNS = (Outlook._NameSpace)oApp.GetNamespace("MAPI");
  oFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
  oExp = oFolder.GetExplorer(false);
  oNS.Logon(Missing.Value, Missing.Value, false, true);
  
  Outlook.Items items = oFolder.Items;
  foreach (Outlook.MailItem mail in items)
  {
      //do someting
  }
  </code></pre>
  
  <p>Can someone tell me how to get all mails from a specific folder (like: wolfy-server)?</p>