Sample code for 30+ languages & platforms
Ruby

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat Ruby Downloads

Ruby
require 'chilkat'

success = false

success = false
mailman = Chilkat::CkMailMan.new()

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

bundle = Chilkat::CkEmailBundle.new()
keepOnServer = true
headersOnly = false
# numBodyLines only applies if downloading headers-only.
numBodyLines = 0

success = mailman.FetchAll(keepOnServer,headersOnly,numBodyLines,bundle)
if (success == false)
    print mailman.lastErrorText() + "\n";
    exit
end

# ...
# ...