def decode_smtp_header(smtp_header):
 if smtp_header:
  text = decode_header(smtp_header.replace('\r', ''))
  return ' '.join([ustr(x[0], x[1]) for x in text])
 return u''

def decode_smtp_header ( smtp_header ) : if smtp_header : text = decode_header ( smtp_header . replace ( '\r' , '' ) ) return ' ' . join ( [ ustr ( x [ 0 ] , x [ 1 ] ) for x in text ] ) return u''
returns unicode() string conversion of the given encoded smtp header text .