title: Accessing Shared Outlook Subfolders With Python
body: <p>I have a script that goes through and moves emails in personal subfolders to various network locations and archives the emails to keep my inbox clean. </p>
  
  <p>I want to deploy this to the team as we have a shared email account, yet I can't access the shared folders in this shared account. </p>
  
  <p>For Example, my folders in outlook are diagrammed below:</p>
  
  <pre><code>1. me@company.com
       - Inbox
            -Sub Folder 1
            -Sub Folder 2
  2. sharedAccount
       - Inbox
            -Sub Folder 1
  </code></pre>
  
  <p>I can connect to my sub-folders just fine and the inbox for the shared account, but I can't get to the shared sub folder 1. </p>
  
  <p>Any suggestions? I'm using Python 3.7 and Win32, code is shown below:</p>
  
  <pre><code>import win32com.client
      from datetime import datetime
      import time
      print('Archiving Emails')
      print('')
      outlook = win32com.client.Dispatch('Outlook.Application').GetNameSpace('MAPI')
      inbox = outlook.Folders('shared')
      inbox = inbox.Folders('Inbox')
      test = outlook.Folders('shared').Folders('Inbox').Folders.Item('sub folder 1')
  </code></pre>
  
  <p>This works fine and lets me access the emails when I point it to my account, but fails at the test line when I point it to the shared email</p>
  
  <p>Any suggestions?</p>