2004年02月07日 星期六 15:05
就是那个分解mbox文件的程序:
fpout = open( r'd:\a.mbox', 'r+' )
fpout.close()
fpin = open( r'd:\a.mbox', 'r+' )
iFileNum = 0
while 1:
strLine = fpin.readline()
if not strLine: break
if strLine[0:5] == 'From ':
if fpout:
fpout.close()
fpout = open( r'd:\pythonmaillist\%d.txt'%iFileNum, 'w+' )
iFileNum = iFileNum + 1
fpout.write( strLine )
fpout.close()
fpin.close()
Regards,
Leojay
leojay at ynet.com
Zeuux © 2025
京ICP备05028076号