title: Iterate Over SharedMailbox
body: <p>I am trying to read into a sharedmailbox named SharedMailbox, TEST-Investigation and has a subfolder named BoA ICL Ack Notifications. I am getting the results but at the same time its also populating messaged from my REGULAR inbox. So i am getting duplicate emails returned because I have some emails the same on my inbox and also on the sharedmailbox so its returning emails from both boxes.</p>
  <pre><code>def readEmail():
  
      outlook = win32com.client.Dispatch(&quot;Outlook.Application&quot;).GetNamespace(&quot;MAPI&quot;)
      folder = outlook.Folders.Item('SharedMailbox, TEST-Investigation')
      inbox = folder.Folders.Item('Inbox')
      subfolder = inbox.Folders.Item('BoA ICL Ack Notifications')
      messages = subfolder.Items
  
      
  
      ggglastHourMessages = messages.Restrict(&quot;[ReceivedTime] &gt;= '&quot; + lastHourDateTime.strftime('%m/%d/%Y %H:%M %p') + &quot;'&quot;)
  
      ggg_emails_l = []
  
      for ggg_email in ggglastHourMessages:
          if 'P2 Cust ID 1111111 File' in ggg_email.Subject:
              print(ggg_email)
  </code></pre>