imaplib ... understanding the result from a fetch of RFC822s

Max M maxm at mxm.dk
Wed Nov 17 15:33:36 EST 2004


Max M wrote:

> I guess that I can iterate it like:
> 
> for ((envelopeStart, msg), envelopeEnd) in range(0, len(messages), 2):
>     # do stuff

I guess not. I really meant:

for i in range(0, len(results), 2):
     ((envelopeStart, msg), envelopeEnd) = (results[0], results[1])

-- 

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science



More information about the Python-list mailing list