(Tcl) Transition from Email.GetDigest to Email.GetDigestEmail
Provides instructions for replacing deprecated GetDigest method calls with GetDigestEmail. Note: This example requires Chilkat v11.0.0 or greater.
load ./chilkat.dll
set email [new_CkEmail]
# ...
# ...
set index 0
# ------------------------------------------------------------------------
# The GetDigest method is deprecated:
# emailObj is a CkEmail
set emailObj [CkEmail_GetDigest $email $index]
if {[CkEmail_get_LastMethodSuccess $email] == 0} then {
puts [CkEmail_lastErrorText $email]
delete_CkEmail $email
exit
}
# ...
# ...
delete_CkEmail $emailObj
# ------------------------------------------------------------------------
# Do the equivalent using GetDigestEmail.
# Your application creates a new, empty Email object which is passed
# in the last argument and filled upon success.
set emailOut [new_CkEmail]
set success [CkEmail_GetDigestEmail $email $index $emailOut]
if {$success == 0} then {
puts [CkEmail_lastErrorText $email]
delete_CkEmail $email
delete_CkEmail $emailOut
exit
}
delete_CkEmail $email
delete_CkEmail $emailOut
|