title: How to go through Outlook emails in reverse order using Python
body: <p>I want to read my Outlook emails and only the Unread ones. The code that I have right now is:</p>
  
  <pre><code>import win32com.client
  
  outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
  inbox = outlook.GetDefaultFolder(6)
  messages = inbox.Items
  message = messages.GetFirst ()
  while message:
      if message.Unread == True:
          print (message.body)
          message = messages.GetNext ()
  </code></pre>
  
  <p>But this goes from the first email to last email. I want to go in the reverse order because unread emails will be on the top. Is there a way to do that?</p>