def decode_TEXT(value):
 atoms = decode_header(value)
 decodedvalue = ''
 for (atom, charset) in atoms:
  if (charset is not None):
   atom = atom.decode(charset)
  decodedvalue += atom
 return decodedvalue

def decode_TEXT ( value ) : atoms = decode_header ( value ) decodedvalue = '' for ( atom , charset ) in atoms : if ( charset is not None ) : atom = atom . decode ( charset ) decodedvalue += atom return decodedvalue
decode :rfc:2047 text .