def METHOD_NAME(text):
    try:
        header, body = text.strip().split("\n\n", 1)
        if not body.strip():
            return 0.1
        invalid_headers = MIMELexer.tokens["header"].sub("", header)
        if invalid_headers.strip():
            return 0.1
        else:
            return 1
    except ValueError:
        return 0.1