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

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat Lua Downloads

Lua
local chilkat = require("chilkat")

local success = false
local mailman = chilkat.MailMan.new()

-- Setup mailman with POP3 server and login settings...
-- ...
-- ...

local bundle = chilkat.EmailBundle.new()
local keepOnServer = true
local headersOnly = false
-- numBodyLines only applies if downloading headers-only.
local numBodyLines = 0

success = mailman:fetch_all(keepOnServer, headersOnly, numBodyLines, bundle)
if not success then
    print(mailman.last_error_text)
    return
end

-- ...
-- ...