Chilkat2-Python
Chilkat2-Python
Transition from MailMan.GetFullEmail to MailMan.FetchFull
Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.Chilkat Chilkat2-Python Downloads
import sys
import chilkat2
success = False
mailman = chilkat2.MailMan()
# ...
# ...
# Assume the email header was previously downloaded using some other Chilkat method...
emailHeader = chilkat2.Email()
# ------------------------------------------------------------------------
# The GetFullEmail method is deprecated:
# fullEmailObj is a CkEmail
fullEmailObj = mailman.GetFullEmail(emailHeader)
if (mailman.LastMethodSuccess == False):
print(mailman.LastErrorText)
sys.exit()
# ...
# ...
# ------------------------------------------------------------------------
# Do the equivalent using FetchFull.
# Your application creates a new, empty Email object which is passed
# in the last argument and filled upon success.
fullEmail = chilkat2.Email()
success = mailman.FetchFull(emailHeader,fullEmail)
if (success == False):
print(mailman.LastErrorText)
sys.exit()