title: ReceivedTime of the mail is not showing in python
body: <p>I am trying to read my mail and see the received time in outlook 2016 using MAPI. 
  I am able to see the subject of the mail not able to see the <strong><em>receivedTime</em></strong> of the mail. I know that "Receivedtime" is there to get the received time of the mail, but while the program is executed,
  <strong>a popup is coming, telling that python has stopped working</strong> </p>
  
  <p>I know it is not due to any machine problem rather some problem in my code.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>def arrange(mailbox):
      global spam
      timeperiod() # stores required date in spam[] list
      msgs=mailbox.Items
      msgs.Sort("[ReceivedTime]", True)
      p=msgs.restrict(" [ReceivedTime] &gt;= '"+spam[2]+"'") #and [ReceivedTime] &gt;= '" +spam[1]+"'    
      print(len(p))
  
      '''
      for m in list1:
          if m.Unread:
              m.Unread=False
              '''
      return p
  
  #Calling it
  ctm1=arrange(ctm)
  
  print(len(ctm1)) #Working fine
  for message in ctm1:
      print (message.subject) #Also works good
      print (message.receivedTime) # Here is the problem, it's not showing
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/GfrZ7.png" alt="screenshot">]<a href="https://i.stack.imgur.com/GfrZ7.png" rel="nofollow noreferrer">1</a></p>
  
  <p><strong>i have tried Senton property as well, but it's not working . So any guesses why the senton or receivedTime  properties are not working???</strong></p>
  
  <p>updated code :</p>
  
  <pre><code>def printlist(box1) :
  print(len(box1))
  
  for message in box1:
      if message.Class==43 :
        #  print('true')
          print (message)
          #.senderEmailAddress) #working
          #print(message.SentOn.strftime("%d-%m-%y")) #not working
          #print(message.body)
          #print(message.UnRead)
          #print (message.receivedTime) #not working
  #print('-----------')
  </code></pre>