Crate cull_gmail

Crate cull_gmail 

Source
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-gmail

Or by configuring the dependencies manually in Cargo.toml:

[dependencies]
cull-gmail = "0.0.9"

Structs§

Config
Configuration file for the program
Credential
Struct for google credentials
GmailClient
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
MessageAge
Message age

Constants§

DEFAULT_MAX_RESULTS
Default for the maximum number of results to return on a page

Traits§

MessageList
Methods to select lists of messages from the mailbox
RuleProcessor
Rules processor to apply the configured rules to the mailbox.

Type Aliases§

Result
Type alias for result with crate Error