This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Michala
Recipients Michala, barry, r.david.murray
Date 2017-09-13.09:53:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This error occured when the email field "From" was demanded:

  File "/home/user/processing/Test/", line 84, in __init__
    self.field_from_full = msg.get("From")
  File "/usr/local/lib/python3.6/email/", line 471, in get
    return self.policy.header_fetch_parse(k, v)
  File "/usr/local/lib/python3.6/email/", line 162, in header_fetch_parse
    return self.header_factory(name, value)
  File "/usr/local/lib/python3.6/email/", line 586, in __call__
    return self[name](name, value)
  File "/usr/local/lib/python3.6/email/", line 197, in __new__
    cls.parse(value, kwds)
  File "/usr/local/lib/python3.6/email/", line 337, in parse
    kwds['parse_tree'] = address_list = cls.value_parser(value)
  File "/usr/local/lib/python3.6/email/", line 328, in value_parser
    address_list, value = parser.get_address_list(value)
  File "/usr/local/lib/python3.6/email/", line 2336, in get_address_list
    token, value = get_address(value)
  File "/usr/local/lib/python3.6/email/", line 2313, in get_address
    token, value = get_group(value)
  File "/usr/local/lib/python3.6/email/", line 2284, in get_group
    if value[0] != ';':
IndexError: string index out of range

I used EmailPolicy, so the message object was instance of EmailMessage.
Header field "From" had following form: 
"From: Bonifac Karaka :"
Date User Action Args
2017-09-13 09:53:21Michalasetrecipients: + Michala, barry, r.david.murray
2017-09-13 09:53:21Michalasetmessageid: <>
2017-09-13 09:53:20Michalalinkissue31445 messages
2017-09-13 09:53:20Michalacreate