def _is_mxp_header(line):
    """Returns whether a line is a valid MXP header."""
    line = line.strip()
    return (len(line) > 2 and line.startswith('*') and line.endswith('*') and
            line[1:-1].strip().lower().startswith('exported from'))