I am reading all emails from my inbox through python code as below:
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6)
messages = inbox.Items
for msg in messages :`enter code here`
print(msg.Subject)
But it is skipping few emails in between the mails. Please help.