okay, i am new to python and realize that indentation is important. i have tried to put everything in their respective indentations but it still doesn't work, can someone try to fix this?
from poplib import * server = POP3("mail.bluebottle.com") print server.getwelcome() print server.user("[EMAIL PROTECTED]") print server.pass_("xxxxxxxx") messagesInfo = server.list()[1] numMessages = len(messagesInfo) print numMessages emails = [] for msg in messagesInfo: msgNum = int(split(msg, " ")[0] msgSize = int(split(msg, " ")[1] if(msgSize < 20000): message = server.retr(msgNum)[1] message = join(message, "\n") emails.append(message) Kevin F wrote: > Dave wrote: >> I searched the usenet and some mail archives and tried various >> techniques, but I can't seem to get the .NET 2.0 SDK to work with >> python. I'm a total newbie when it comes to python installs. I >> downloaded the .NET 2.0 SDK and I have python 2.4.2 and im trying to >> install zope. So i go to the cmd and go to the directory and type >> "python setup.py build" (Will have to install after) and it comes up >> with this(after everything else runs smoothly): >> running build_ext >> error: The .NET SDK needs to be installed before building extensions >> for python. >> >> I set the .net2.0 directory in windows enviromental PATH and added a >> key to registry in: >> HKEY_{LOCAL_MACHINE}\Software\Microsoft\.NETFramework\FrameworkSDKDir >> to the path of it. It still doesn't recongnize it and I don't know why. >> > > okay, i am new to python and realize that indentation is important. i > have tried to put everything in their respective indentations but it > still doesn't work, can someone try to fix this? > > from poplib import * > > server = POP3("mail.bluebottle.com") > print server.getwelcome() > print server.user("[EMAIL PROTECTED]") > print server.pass_("hahaha") > > messagesInfo = server.list()[1] > numMessages = len(messagesInfo) > > print numMessages > > emails = [] > for msg in messagesInfo: > msgNum = int(split(msg, " ")[0] > msgSize = int(split(msg, " ")[1] > if(msgSize < 20000): > message = server.retr(msgNum)[1] > message = join(message, "\n") > emails.append(message) -- http://mail.python.org/mailman/listinfo/python-list