(value)
return message_id
message-id      =   "Message-ID:" msg-id CRLF
message-id      =   "Message-ID:" msg-id CRLF
message - id = Message - ID : msg - id CRLF
def parse_message_id(value):
    """message-id      =   "Message-ID:" msg-id CRLF
    """
    message_id = MessageID()
    try:
        token, value = get_msg_id(value)
        message_id.append(token)
    except errors.HeaderParseError as ex:
        token = get_unstructured(value)
        message_id = InvalidMessageID(token)
        message_id.defects.append(
            errors.InvalidHeaderDefect("Invalid msg-id: {!r}".format(ex)))
    else:
        # Value after parsing a valid msg_id should be None.
        if value:
            message_id.defects.append(errors.InvalidHeaderDefect(
                "Unexpected {!r}".format(value)))

    return message_id
def parse_message_id ( value ) : message_id = MessageID ( ) try : token , value = get_msg_id ( value ) message_id . append ( token ) except errors . HeaderParseError as ex : token = get_unstructured ( value ) message_id = InvalidMessageID ( token ) message_id . defects . append ( errors . InvalidHeaderDefect ( "Invalid msg-id: {!r}" . format ( ex ) ) ) else : # Value after parsing a valid msg_id should be None. if value : message_id . defects . append ( errors . InvalidHeaderDefect ( "Unexpected {!r}" . format ( value ) ) ) return message_id