Sample code for 30+ languages & platforms
Xbase++ Requires Chilkat v11.0.0+

Transition from MailMan.FetchMultiple to MailMan.FetchUidlSet

Provides instructions for replacing deprecated FetchMultiple method calls with FetchUidlSet.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oMailman
LOCAL oSaUidls
LOCAL oStUidls
LOCAL oBundleObj
LOCAL nHeadersOnly
LOCAL nNumBodyLines
LOCAL oBundleOut

nSuccess := 0

oMailman := CreateObject("Chilkat.MailMan")

//  ...
//  ...

oSaUidls := CreateObject("Chilkat.StringArray")
oSaUidls:Append("aaa")
oSaUidls:Append("bbb")
oSaUidls:Append("ccc")

oStUidls := CreateObject("Chilkat.StringTable")
oStUidls:Append("aaa")
oStUidls:Append("bbb")
oStUidls:Append("ccc")

//  ------------------------------------------------------------------------
//  The FetchMultiple method is deprecated:

oBundleObj := oMailman:FetchMultiple(oSaUidls)
IF (oMailman:LastMethodSuccess == 0)
    ? oMailman:LastErrorText
    oMailman:destroy()
    oSaUidls:destroy()
    oStUidls:destroy()
    RETURN
ENDIF

//  ...
//  ...

oBundleObj:destroy()

//  ------------------------------------------------------------------------
//  Do the equivalent using FetchUidlSet.
//  Your application creates a new, empty EmailBundle object which is passed 
//  in the last argument and filled upon success.

nHeadersOnly := 0
//  Irrelevant because we are not downloading headers-only.
nNumBodyLines := 0

oBundleOut := CreateObject("Chilkat.EmailBundle")
nSuccess := oMailman:FetchUidlSet(oStUidls, nHeadersOnly, nNumBodyLines, oBundleOut)
IF (nSuccess == 0)
    ? oMailman:LastErrorText
    oMailman:destroy()
    oSaUidls:destroy()
    oStUidls:destroy()
    oBundleOut:destroy()
    RETURN
ENDIF

oMailman:destroy()
oSaUidls:destroy()
oStUidls:destroy()
oBundleOut:destroy()