Sample code for 30+ languages & platforms
CkPython Requires Chilkat v11.0.0+

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()

#  ...
#  ...