Popmail.py Need help.....................
Sheila King
sheila at spamcop.net
Thu Aug 9 00:25:40 EDT 2001
When I used Sam Spade utilities and tried to do a traceroute on
pop.mail.mia.bellsouth.net I got the message
"no such host"
So, I'd say that you have the hostname incorrect.
--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/
On Thu, 9 Aug 2001 00:04:47 -0400, "Relfx" <relfx at hotmail.com> wrote in
comp.lang.python in article
<%Pnc7.5649$V43.473350 at e3500-atl1.usenetserver.com>:
:I have tried using these modules but i'm getting some errors when i run the
:script.
:
:Here is the code i'm using for the pop mail :
:
:import getpass , poplib
:M = poplib.POP3('pop.mail.mia.bellsouth.net')
:M.user(getpass.getuser())
:M.pass_(getpass.getpass())
:numMessages = len(M.list()[1])
:for i in range (numMessages):
: for j in M.retr (i+1)[1]:
: print j
:
:>>>
:Traceback (most recent call last):
: File "<string>", line 1, in ?
: File "C:\Python21\Scripts\popmail.py", line 2, in ?
: M = poplib.POP3('pop.mail.mia.bellsouth.net')
: File "C:\PYTHON21\lib\poplib.py", line 79, in __init__
: self.sock.connect((self.host, self.port))
: File "<string>", line 1, in connect
:error: host not found
:
:
:
More information about the Python-list
mailing list