bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504)


Fix a potential IndexError when passing an empty value to the message-id
parser. Instead, HeaderParseError should be raised.
(cherry picked from commit 3ae4ea1931361dd2743e464790e739d9285501bf)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
3 files changed