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 popconnection.

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

Re: Using poplib to parse headers

2008-05-28 Thread Tim Roberts
Jean-Claude Neveu <[EMAIL PROTECTED]> wrote: > >I am writing a Python program to check email using POP3. I've tried >the sample code from python.org, and it works great. In other words, >the code below successfully prints out my emails. > >import getpass, poplib, email >M = poplib.POP3('mail.blah