Re: Using poplib to parse headers - Thank You All!

2012-12-10 Thread asklucas
Hello Jean-Claude! Thank you for your post, it helped me a lot! I'm not too new to Python but still struggling to make use of that great language's features. I haven't tested it but since you are interested in syntactic subtleties, I think you can save one iterator (k): for j in

Re: Using poplib to parse headers - Thank You All!

2008-07-06 Thread Jean-Claude Neveu
Tim Roberts wrote: You've received some very confusing advice in this thread. Alex had the right answer, but I want to expand it a bit. [...] poplib.retr gives you a string. You need to hand that string to the email module, and you do that using email.message_from_string. This is just to