[issue39100] email.policy.SMTP throws AttributeError on invalid header

2022-01-30 Thread Anton Khirnov
Anton Khirnov added the comment: Ping yet again. Can anyone please look at this? -- ___ Python tracker <https://bugs.python.org/issue39100> ___ ___ Python-bug

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-07 Thread Anton Khirnov
Anton Khirnov added the comment: Quoting Andrei Kulakov (2021-07-03 16:03:34) > Anton: thanks for the report! In the message you say you are not sure > of the solution, and because of that not sending a patch, but then you > created the PR; - please clarify. I didn't send a p

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-07 Thread Anton Khirnov
Anton Khirnov added the comment: Quoting R. David Murray (2021-07-06 18:59:56) > How are you encountering this error? The following program runs without > exception for me on master: > > from email import message_from_binary_file > from email.policy impor

[issue43501] email._header_value_parse throws AttributeError on display name ending with dot

2021-03-15 Thread Anton Khirnov
Change by Anton Khirnov : -- keywords: +patch pull_requests: +23636 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24874 ___ Python tracker <https://bugs.python.org/issu

[issue43501] email._header_value_parse throws AttributeError on display name ending with dot

2021-03-15 Thread Anton Khirnov
New submission from Anton Khirnov : On parsing an email where the display name in an address ends on a dot immediately followed by angle-addr, accessing the resulting mailbox display_name throws /usr/lib/python3.9/email/_header_value_parser.py in value(self) 589 if self[0

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-03-15 Thread Anton Khirnov
Change by Anton Khirnov : -- keywords: +patch pull_requests: +23633 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24872 ___ Python tracker <https://bugs.python.org/issu

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2019-12-19 Thread Anton Khirnov
New submission from Anton Khirnov : When parsing a (broken) mail from linux-me...@vger.kernel.org (message-id 20190212181908.horde.peighvv2khy9ekuy8ta8...@webmail.your-server.de, headers attached) with email.policy.SMTP, I get an AttributeError on trying to read the 'to' header: /usr/lib

[issue30820] email.contentmanager.raw_data_manager fails to create multipart messages

2017-06-30 Thread Anton Khirnov
New submission from Anton Khirnov: The documentation for the "new API" -- email.contentmanager.raw_data_manager -- claims that passing a list of messages to set_content() will create a multipart message. However, it fails with "KeyError: 'builtins.list'" and from looking a