[Tutor] (no subject)

Daniel Nash dan_nash@hotmail.com
Sat May 10 07:16:24 2003


I'm still trying to understand mime and multifiles,

can some one explain the purpose of the following lines of code in the 
12.10.2 MultiFile Example

data = StringIO.StringIO()

            submsg = mimetools.Message(file)
            try:
                data = StringIO.StringIO()
                mimetools.decode(file, data, submsg.getencoding())
            except ValueError:
                continue
            if submsg.gettype() == mimetype:
                break
        file.pop()
    return data.getvalue()



submsg = mimetools.Message(file)
        try:
            data = StringIO.StringIO()
            mimetools.decode(file, data, submsg.getencoding())
        except ValueError:
            continue

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail