[Tutor] POP3 Help
kjphotog@juno.com
kjphotog@juno.com
Mon, 21 Jan 2002 16:32:50 -0800
When I ran tutor Tara's example for retrieving e-mail using this POP3:
import poplib
pop = poplib.POP3('server', 'port')
pop.user('username')
pop.pass_('password')
num_msg_list = len(pop.list()[1])
# Iterate over all messages.
for i in range(num_msg_list):
# Loop over all lines of the message, except index 1, which is the
response.
for j in pop.retr(i+1)[1]:
# Print the line.
print j
But I only got a brief glimpse at my message list before my screen
exploded into an unreadable alphabet soup. Had to CtrlAltD to stop IT!
How do I decode my messages to read them?
Thanks again, Keith
________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today! For your FREE software, visit:
http://dl.www.juno.com/get/web/.