def unmimify(infile, outfile, decode_base64=0):
 if (type(infile) == type('')):
  ifile = open(infile)
  if ((type(outfile) == type('')) and (infile == outfile)):
   import os
   (d, f) = os.path.split(infile)
   os.rename(infile, os.path.join(d, (',' + f)))
 else:
  ifile = infile
 if (type(outfile) == type('')):
  ofile = open(outfile, 'w')
 else:
  ofile = outfile
 nifile = File(ifile, None)
 unmimify_part(nifile, ofile, decode_base64)
 ofile.flush()

def unmimify ( infile , outfile , decode_base64 = 0 ) : if ( type ( infile ) == type ( '' ) ) : ifile = open ( infile ) if ( ( type ( outfile ) == type ( '' ) ) and ( infile == outfile ) ) : import os ( d , f ) = os . path . split ( infile ) os . rename ( infile , os . path . join ( d , ( ',' + f ) ) ) else : ifile = infile if ( type ( outfile ) == type ( '' ) ) : ofile = open ( outfile , 'w' ) else : ofile = outfile nifile = File ( ifile , None ) unmimify_part ( nifile , ofile , decode_base64 ) ofile . flush ( )
convert quoted-printable parts of a mime mail message to 8bit .