Sample code for 30+ languages & platforms
Chilkat2-Python

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat Chilkat2-Python Downloads

Chilkat2-Python
import sys
import chilkat2

success = False

success = False
mailman = chilkat2.MailMan()

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

bundle = chilkat2.EmailBundle()
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()

# ...
# ...