def HeaderPrints(message):
 m = HeaderPrintMTADetails(message)
 u = HeaderPrintMUADetails(message, mta=m)[:20]
 g = HeaderPrintGenericDetails(message)[:50]
 mua = (u[1] if u else None)
 if (mua and mua.startswith('Mozilla ')):
  mua = mua.split()[(-1)]
 return {'sender': md5_hex('\n'.join(((m + u) + g))), 'tools': md5_hex('\n'.join((u + g))), 'mua': mua}

def HeaderPrints ( message ) : m = HeaderPrintMTADetails ( message ) u = HeaderPrintMUADetails ( message , mta = m ) [ : 20 ] g = HeaderPrintGenericDetails ( message ) [ : 50 ] mua = ( u [ 1 ] if u else None ) if ( mua and mua . startswith ( 'Mozilla ' ) ) : mua = mua . split ( ) [ ( - 1 ) ] return { 'sender' : md5_hex ( '\n' . join ( ( ( m + u ) + g ) ) ) , 'tools' : md5_hex ( '\n' . join ( ( u + g ) ) ) , 'mua' : mua }
generate fingerprints from message headers which identifies the mua .