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

2022-01-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: I confirmed I get the same error as Anton on 3.9 and 3.11 . -- ___ Python tracker ___ ___ Python-

[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 ___ ___ Python-bugs-list mai

[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 patch when original

[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 import SMTP > > msg = message_from_binary

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

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: I should have been more exact - I've used python3.7.7 . -- ___ Python tracker ___ ___ Python-bugs

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

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: Running R.David's test script on python3.7, it also works, there's no exception. -- ___ Python tracker ___ __

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

2021-07-06 Thread R. David Murray
R. David Murray added the comment: 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 import SMTP msg = message_from_binary_file(open('mail.eml', 'rb'), policy=SMTP) print(msg) ---

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

2021-07-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: 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. -- nosy: +andrei.avk ___ Python tracke

[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 ___ __

[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/pyt