(mail)
return score
Search the spam score from a mail as a string.

    The returning format is ``d.d/d.d<br>`` and it contains the score found
    in the email.

    Args:
        mail (str): A email.message.Message decoded.
    Returns:
        str: The score found in the mail message.
Search the spam score from a mail as a string.
Search the spam score from a mail as a string .
def score_from_mail(mail):
    """
    Search the spam score from a mail as a string.

    The returning format is ``d.d/d.d<br>`` and it contains the score found
    in the email.

    Args:
        mail (str): A email.message.Message decoded.
    Returns:
        str: The score found in the mail message.

    """
    res = re.search(r"score=(-?\d+(?:\.\d+)?) required=(\d+(?:\.\d+)?)", mail)
    score = res.group(1) + "/" + res.group(2) + "\n"
    return score
def score_from_mail ( mail ) : res = re . search ( r"score=(-?\d+(?:\.\d+)?) required=(\d+(?:\.\d+)?)" , mail ) score = res . group ( 1 ) + "/" + res . group ( 2 ) + "\n" return score