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 Cacadril
Recipients Cacadril, barry, r.david.murray
Date 2018-05-13.00:50:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526172602.81.0.682650639539.issue33476@psf.upfronthosting.co.za>
In-reply-to
Content
When address group is missing final ';', 'value' will be an empty string. I suggest the following patch

$ diff -u _save_header_value_parser.py _header_value_parser.py
--- _save_header_value_parser.py        2018-03-14 01:07:54.000000000 +0100
+++ _header_value_parser.py     2018-05-13 02:17:13.830053600 +0200
@@ -1876,7 +1876,7 @@
     if not value:
         group.defects.append(errors.InvalidHeaderDefect(
             "end of header in group"))
-    if value[0] != ';':
+    elif value[0] != ';':
         raise errors.HeaderParseError(
             "expected ';' at end of group but found {}".format(value))
     group.append(ValueTerminal(';', 'group-terminator'))
History
Date User Action Args
2018-05-13 00:50:03Cacadrilsetrecipients: + Cacadril, barry, r.david.murray
2018-05-13 00:50:02Cacadrilsetmessageid: <1526172602.81.0.682650639539.issue33476@psf.upfronthosting.co.za>
2018-05-13 00:50:02Cacadrillinkissue33476 messages
2018-05-13 00:50:01Cacadrilcreate