(mail)
return sa_unwrap_from_email(mail)
Unwrap a email from the spamassasin email.

    the mail could be a email.message.Email, a file or a string or buffer.
    It ruturns a list with all the email.message.Email founds.

    Args:
        mail (email.message.Message, FILE_TYPES, str): the mail to unwrap.

    Returns:
        [email.message.Message]: A list with the unwraped mails.
Unwrap a email from the spamassasin email.
Unwrap a email from the spamassasin email .
def unwrap(mail):
    """Unwrap a email from the spamassasin email.

    the mail could be a email.message.Email, a file or a string or buffer.
    It ruturns a list with all the email.message.Email founds.

    Args:
        mail (email.message.Message, FILE_TYPES, str): the mail to unwrap.

    Returns:
        [email.message.Message]: A list with the unwraped mails.

    """
    if isinstance(mail, email.message.Message):
        return sa_unwrap_from_email(mail)
    if isinstance(mail, FILE_TYPES):  # files are also stdin...
        return sa_unwrap_from_email(PARSE_FILE(mail))
    mail = email.message_from_bytes(mail)
    return sa_unwrap_from_email(mail)
def unwrap ( mail ) : if isinstance ( mail , email . message . Message ) : return sa_unwrap_from_email ( mail ) if isinstance ( mail , FILE_TYPES ) : # files are also stdin... return sa_unwrap_from_email ( PARSE_FILE ( mail ) ) mail = email . message_from_bytes ( mail ) return sa_unwrap_from_email ( mail )