[issue38698] While parsing email message id: UnboundLocalError

2019-12-08 Thread Abhilash Raj
Abhilash Raj added the comment: Closing this as fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue38698] While parsing email message id: UnboundLocalError

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset f66f4a09d0b6817fe6a86a567fd506aa223f1563 by Miss Islington (bot) in branch '3.8': bpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503) https://github.com/python/cpython/commit/f66f4a09d0b6817fe6a86a567fd506aa223f1563

[issue38698] While parsing email message id: UnboundLocalError

2019-12-08 Thread Abhilash Raj
Abhilash Raj added the comment: New changeset 68157da8b42b26408af5d157d2dba4fcf29c6320 by Abhilash Raj in branch 'master': bpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503) https://github.com/python/cpython/commit/68157da8b42b26408af5d157d2dba4fcf29c6320 ---

[issue38698] While parsing email message id: UnboundLocalError

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16991 pull_request: https://github.com/python/cpython/pull/17514 ___ Python tracker ___ __

[issue38698] While parsing email message id: UnboundLocalError

2019-12-07 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +16980 pull_request: https://github.com/python/cpython/pull/17503 ___ Python tracker ___

[issue38698] While parsing email message id: UnboundLocalError

2019-12-05 Thread miss-islington
miss-islington added the comment: New changeset e21aa61e96f8343200e765d119ebe778873a6bf1 by Miss Islington (bot) in branch '3.8': bpo-38698: Prevent UnboundLocalError to pop up in parse_message_id (GH-17277) https://github.com/python/cpython/commit/e21aa61e96f8343200e765d119ebe778873a6bf1 -

[issue38698] While parsing email message id: UnboundLocalError

2019-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +16957 pull_request: https://github.com/python/cpython/pull/17476 ___ Python tracker ___ __

[issue38698] While parsing email message id: UnboundLocalError

2019-12-04 Thread miss-islington
miss-islington added the comment: New changeset bb815499af855b1759c02535f8d7a9d0358e74e8 by Miss Islington (bot) (Claudiu Popa) in branch 'master': bpo-38698: Prevent UnboundLocalError to pop up in parse_message_id (GH-17277) https://github.com/python/cpython/commit/bb815499af855b1759c02535f8

[issue38698] While parsing email message id: UnboundLocalError

2019-11-24 Thread R. David Murray
R. David Murray added the comment: Actually, the success path there should also check that value is empty, and if it is not register a defect for that as well. -- ___ Python tracker

[issue38698] While parsing email message id: UnboundLocalError

2019-11-24 Thread R. David Murray
R. David Murray added the comment: More tests are always good :) The "correct" solution here (as far as I remember, its has been a while since I've had time to even looked at the _header_value_parser code) would be to add a new 'invalid-msg-id' token, and do this: message_id = MessageID

[issue38698] While parsing email message id: UnboundLocalError

2019-11-20 Thread PCManticore
Change by PCManticore : -- keywords: +patch pull_requests: +16770 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17277 ___ Python tracker ___

[issue38698] While parsing email message id: UnboundLocalError

2019-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This was also reported in issue38708 with the original code added in issue35805. Commenting out the except clause also doesn't raise any error in test suite so I assume the code path was not tested. Maybe the script could be added as part of the te

[issue38698] While parsing email message id: UnboundLocalError

2019-11-05 Thread Nikita Hoffmann
Change by Nikita Hoffmann : Added file: https://bugs.python.org/file48696/samplescript.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue38698] While parsing email message id: UnboundLocalError

2019-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please attach a sample script to reproduce this error? -- nosy: +maxking, xtreak ___ Python tracker ___

[issue38698] While parsing email message id: UnboundLocalError

2019-11-05 Thread Nikita Hoffmann
New submission from Nikita Hoffmann : Parsing an invalid email message id can throw a header parser error. A bug in parse_message_ still tries to append the unset token to a variable. File "/opt/python-3.8.0/lib/python3.8/email/_header_value_parser.py", line 2116, in parse_message_ id mes