title: "AttributeError: unknown.CC " while trying to parse emails in MS outlook 2010 with python
body: <p>I am trying parse emails in MS outlook 2010 under specific outlook mailbox with help of python. After reading few email without any issues, it suddenly gives error  <strong>&quot;AttributeError: unknown.CC&quot;</strong></p>
  <p>I tried to investigate the reason but failed to understand. Thus request you to please help.</p>
  <pre><code>import win32com.client as client
  
  outlook=client.Dispatch('Outlook.Application')
  
  namespace=outlook.GetNameSpace(&quot;MAPI&quot;)
  
  Der=namespace.Folders['Drive']
  
  Dinbox=Der.Folders['Inbox']
  
  for message in Dinbox.Items:
      if message.Categories ==&quot;&quot;:
          if &quot;xyz&quot; in message.CC or &quot;xyz&quot; in message.To :
              message.Categories=&quot;xyz&quot;
  </code></pre>
  <p>Below is the error which i encounter :</p>
  <pre><code>Error: AttributeError: &lt;unknown&gt;.CC
  
  C:\Users\SSS\Anaconda3\Lib\site-packages\win32com\client\dynamic.py, line 527,in __getattr__
              
  raise AttributeError(&quot;%s.%s&quot; %(self._username_,attr))
  
  AttributeError: unknown.CC
  </code></pre>