def header_decode(s):
 s = s.replace('_', ' ')
 return re.sub('=\\w{2}', _unquote_match, s)

def header_decode ( s ) : s = s . replace ( '_' , ' ' ) return re . sub ( '=\\w{2}' , _unquote_match , s )
decode a string encoded with rfc 2045 mime header q encoding .