title: win32com Outlook client has no attribute 'GetNameSpace'
body: <p>I was working well with <code>GetNameSpace('MAPI')</code>, but I wrote an ActiveState code: <a href="https://code.activestate.com/recipes/173216-import-outlook-contacts-using-win32com/" rel="nofollow noreferrer">import Outlook contacts using win32com</a> and <code>GetNameSpace</code> is not longer useful.</p>
  <p>Now the code has changed: Is useful <code>GetNamespace('MAPI')</code>. Why did this happen and how to return to <code>GetNameSpace('MAPI')</code>?</p>
  <pre><code>import win32com.client as client
  outlook = client.Dispatch('Outlook.Application')
  namespace = outlook.GetNameSpace('MAPI')
  drafts = namespace.GetDefaultFolder(16)
  contacts = namespace.GetDefaultFolder(10)
  inbox = namespace.GetDefaultFolder(6)
  </code></pre>
  <p>Result:</p>
  <pre><code>AttributeError: '&lt;win32com.gen_py.Microsoft Outlook 16.0 Object Library._Application
    instance at 0x2538077068688&gt;' object has no attribute 'GetNameSpace'
  </code></pre>
  <p>I am working on VSCode.</p>