Rust Requires Chilkat v11.0.0+
Rust
Example: MailMan.FetchAll method
Demonstrates how to call the FetchAll method.Chilkat Rust Downloads
let _ = false;
let mailman = chilkat::MailMan::new();
// Setup mailman with POP3 server and login settings...
// ...
// ...
let bundle = chilkat::EmailBundle::new();
let keep_on_server = true;
let headers_only = false;
// numBodyLines only applies if downloading headers-only.
let num_body_lines = 0;
if mailman.fetch_all(keep_on_server, headers_only, num_body_lines, &bundle).is_err() {
println!("{}", mailman.last_error_text());
return;
}
// ...
// ...