Xbase++ Requires Chilkat v11.0.0+
Xbase++
Example: MailMan.FetchAll method
Demonstrates how to call the FetchAll method.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oMailman
LOCAL oBundle
LOCAL nKeepOnServer
LOCAL nHeadersOnly
LOCAL nNumBodyLines
nSuccess := 0
nSuccess := 0
oMailman := CreateObject("Chilkat.MailMan")
// Setup mailman with POP3 server and login settings...
// ...
// ...
oBundle := CreateObject("Chilkat.EmailBundle")
nKeepOnServer := 1
nHeadersOnly := 0
// numBodyLines only applies if downloading headers-only.
nNumBodyLines := 0
nSuccess := oMailman:FetchAll(nKeepOnServer, nHeadersOnly, nNumBodyLines, oBundle)
IF (nSuccess == 0)
? oMailman:LastErrorText
oMailman:destroy()
oBundle:destroy()
RETURN
ENDIF
// ...
// ...
oMailman:destroy()
oBundle:destroy()