Sample code for 30+ languages & platforms
Ruby

Transition from MailMan.GetFullEmail to MailMan.FetchFull

Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.

Chilkat Ruby Downloads

Ruby
require 'chilkat'

success = false

mailman = Chilkat::CkMailMan.new()

# ...
# ...

# Assume the email header was previously downloaded using some other Chilkat method...
emailHeader = Chilkat::CkEmail.new()

# ------------------------------------------------------------------------
# The GetFullEmail method is deprecated:

# fullEmailObj is a CkEmail
fullEmailObj = mailman.GetFullEmail(emailHeader)
if (mailman.get_LastMethodSuccess() == false)
    print mailman.lastErrorText() + "\n";
    exit
end

# ...
# ...

# ------------------------------------------------------------------------
# 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 = Chilkat::CkEmail.new()
success = mailman.FetchFull(emailHeader,fullEmail)
if (success == false)
    print mailman.lastErrorText() + "\n";
    exit
end