title: How to read internet headers of email in python?
body: <p>I want to read internet headers of a mail I received and analyse it on online portals to check if the mail is malicious.
  I have gone through many web sites and figured win32com will help me with this. Sadly, though i can extract a lot of things, I'm not being able to extract the internet headers.
  This is what I have done till now:</p>
  
  <pre><code> import win32com.client
  outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
  inbox=outlook.GetDefaultFolder(6)
  messages = inbox.Items
  message = messages.GetLast()
  mess=message.Body            #Body attribute fetches the body of the message
  print mess                   #There is no InternetHeader attribute
  </code></pre>
  
  <p>The message variable has no Headers or InternetIeaders attribute. Link : <a href="https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mailitem_properties.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mailitem_properties.aspx</a></p>
  
  <p>Please help me to retrieve my message headers. Thank you in advance!</p>