def hash(ctx, message_id, message):
    """ Take a single mail message and show its canonicalised form and hash.

    Mainly used to debug message hashing.
    """
    conf = Config(message_id=message_id)

    mail = Mail(message, conf)

    logger.info(mail.header_text)
    logger.info('-' * 70)
    logger.info('Hash: {}'.format(mail.hash_key))
def hash ( ctx , message_id , message ) : conf = Config ( message_id = message_id ) mail = Mail ( message , conf ) logger . info ( mail . header_text ) logger . info ( '-' * 70 ) logger . info ( 'Hash: {}' . format ( mail . hash_key ) )
Take a single mail message and show its canonicalised form and hash.

    Mainly used to debug message hashing.