Sample code for 30+ languages & platforms
CkPython

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat CkPython Downloads

CkPython
import sys
import chilkat

success = False

success = False
mailman = chilkat.CkMailMan()

# Setup mailman with POP3 server and login settings...
# ...
# ...

bundle = chilkat.CkEmailBundle()
keepOnServer = True
headersOnly = False
# numBodyLines only applies if downloading headers-only.
numBodyLines = 0

success = mailman.FetchAll(keepOnServer,headersOnly,numBodyLines,bundle)
if (success == False):
    print(mailman.lastErrorText())
    sys.exit()

# ...
# ...