[issue31445] Index out of range in get of message.EmailMessage.get()

2019-07-09 Thread R. David Murray
R. David Murray added the comment: Note that the reporter indicated that the message was an instance of EmailMessage (the new API). You'd need to use policy-default to get that using message_from_string. But yes, this was fixed in another issue. -- stage: patch review -> resolved s

[issue31445] Index out of range in get of message.EmailMessage.get()

2019-06-14 Thread Abhilash Raj
Abhilash Raj added the comment: I can't reproduce this issue on the latest master branch. This seems to be fixed as a part of a different PR I suppose. >>> import email >>> msg = email.message_from_string("From: Bonifac Karaka : boni...@gmail.com") >>> msg['From'] 'Bonifac Ka

[issue31445] Index out of range in get of message.EmailMessage.get()

2018-05-14 Thread Barbara
Change by Barbara : -- pull_requests: +6512 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue31445] Index out of range in get of message.EmailMessage.get()

2018-05-14 Thread Randy Wong
Randy Wong added the comment: Submitted pull request: fix-issue-31455: Changed by adding two lines in the module "email/_header_value_parser.py" into the function "get_mailbox_list(value)" before return mailbox_list, value to avoid IndexError. -- keywords: +patch nosy: +radar383 pull

[issue31445] Index out of range in get of message.EmailMessage.get()

2017-10-09 Thread Michala
Michala added the comment: I added 2 lines into the file "email/_header_value_parser.py" into the function "get_mailbox_list(value)" before return value: if not value: value = ';' return mailbox_list, value It is in attachments. -- resolution: -> works for me Added f

[issue31445] Index out of range in get of message.EmailMessage.get()

2017-09-13 Thread Michala
New submission from Michala: This error occured when the email field "From" was demanded: File "/home/user/processing/Test/process_email.py", line 84, in __init__ self.field_from_full = msg.get("From") File "/usr/local/lib/python3.6/email/message.py", line 471, in get return self.pol