[New-bugs-announce] [issue34553] Python Crashes when trying to access any date related fields in MailItem

Vijay report at bugs.python.org
Fri Aug 31 03:47:43 EDT 2018


New submission from Vijay <vijay.ramdass at gmail.com>:

MailItem.SentOn or MailItem.ReceivedTime, Python crashes with windows showing "Python has stopped working" dialog window. What can be the cause of this issue?

import win32com.client
import os
import datetime
from datetime import timedelta
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6)
messages=inbox.Items
message = messages.GetLast()

print(type(message))

t = message.ReceivedTime   ---- crashes when the script is reached this line.

Attached the screenshot for your reference.

----------
files: python crash.PNG
messages: 324406
nosy: vijay
priority: normal
severity: normal
status: open
title: Python Crashes when trying to access any date related fields in MailItem
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file47774/python crash.PNG

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34553>
_______________________________________


More information about the New-bugs-announce mailing list