import net nw = net.Net() nw.connect('', 31337) while 1: nw.mailcarrier() for msg in nw.fetch(): print "CLIENT:", msg