Irit Katriel <[email protected]> added the comment:
I am unable to reproduce this on 3.11:
>>> with open(b'lkml-exception.mail', mode = 'r') as f:
... msg = email.message_from_file(f, policy=email.policy.SMTP)
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
AttributeError: module 'email' has no attribute 'policy'
>>> import email.policy
>>> with open(b'lkml-exception.mail', mode = 'r') as f:
... msg = email.message_from_file(f, policy=email.policy.SMTP)
...
>>> msg.get_all('to')
['unlisted-recipients:;, @pop.kundenserver.de']
>>>
----------
nosy: +iritkatriel
status: open -> pending
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue27257>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com