Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Imap.FetchBundle to Imap.FetchMsgSet
Provides instructions for replacing deprecated FetchBundle method calls with FetchMsgSet.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oImap
LOCAL oMset
LOCAL oBundleObj
LOCAL nHeadersOnly
LOCAL oBundleOut
nSuccess := 0
oImap := CreateObject("Chilkat.Imap")
// ...
// ...
oMset := CreateObject("Chilkat.MessageSet")
nSuccess := oImap:QueryMbx("FROM joe@example.com", 1, oMset)
// ...
// ...
// ------------------------------------------------------------------------
// The FetchBundle method is deprecated:
oBundleObj := oImap:FetchBundle(oMset)
IF (oImap:LastMethodSuccess == 0)
? oImap:LastErrorText
oImap:destroy()
oMset:destroy()
RETURN
ENDIF
// ...
// ...
oBundleObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using FetchMsgSet.
// Your application creates a new, empty EmailBundle object which is passed
// in the last argument and filled upon success.
nHeadersOnly := 0
oBundleOut := CreateObject("Chilkat.EmailBundle")
nSuccess := oImap:FetchMsgSet(nHeadersOnly, oMset, oBundleOut)
IF (nSuccess == 0)
? oImap:LastErrorText
oImap:destroy()
oMset:destroy()
oBundleOut:destroy()
RETURN
ENDIF
oImap:destroy()
oMset:destroy()
oBundleOut:destroy()