def HeaderPrintGenericDetails(message, which=MUA_HP_HEADERS):
 return [k for (k, v) in message.items() if (k.lower() in which)]

def HeaderPrintGenericDetails ( message , which = MUA_HP_HEADERS ) : return [ k for ( k , v ) in message . items ( ) if ( k . lower ( ) in which ) ]
extract message details which may help identify the mua .