[Tutor] need a little help
matteo
matteolovatti at mac.com
Mon Dec 29 18:09:05 EST 2003
hi everybody i'm new to the list
i'm now starting to build my first "pyhtons" but i'm hang with this...
import poplib
M = poplib.POP3("serverpop")
M.user("aaa")
M.pass_("bbb")
numMessages = len(M.list()[1])
for i in range(numMessages):
for j in M.retr(i+1)[1]:
print j
i really would like to have j printed only if the line in the "j"
variable begins with the string "subject:"
but i'm not able to do that
can someone please help me ?
thanks
matteo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 547 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20031230/46760fb5/attachment-0001.bin
More information about the Tutor
mailing list