Expand description
§cull-gmail Library Documentation
The cull-gmail library provides types to enable the culling of emails using the Gmail API including the following steps:
- login to get authorization
- backup the mailbox
- filtered lists of the contents
- move email matching a filtered list to trash
§Installation
Add the library to your program’s Cargo.toml using cargo add:
$ cargo add cull-gmailOr by configuring the dependencies manually in Cargo.toml:
[dependencies]
cull-gmail = "0.0.8"Structs§
- Config
- Configuration file for the program
- Credential
- Struct for google credentials
- Gmail
Client - Struct to capture configuration for List API call.
- Retention
- Define retention period and flag to indicate if label should be generated
Enums§
- EolAction
- End of life action
- Error
- Error messages for cull-gmail
- Message
Age - Message age
Constants§
- DEFAULT_
MAX_ RESULTS - Default for the maximum number of results to return on a page
Traits§
- Message
List - Methods to select lists of messages from the mailbox
- Rule
Processor - Rules processor to apply the configured rules to the mailbox.
Type Aliases§
- Result
- Type alias for result with crate Error