pub enum EmailCommands {
Authenticate {
email: String,
alias: Option<String>,
provider: Option<Provider>,
host: Option<String>,
port: Option<u16>,
},
List,
Sync {
alias: Option<String>,
local_output: Option<PathBuf>,
remote_output: Option<String>,
debug: Option<DebugPhase>,
concurrency: usize,
},
}Variants§
Authenticate
Authenticate an email identity and register it under a local alias
Fields
alias: Option<String>Local alias to store this identity under (e.g. first-last). Defaults to a sanitized form of the email’s local part.
provider: Option<Provider>Email provider. Auto-detected from the email’s domain when omitted, falling back to an interactive prompt if detection fails.
List
List all locally authenticated email identities
Sync
Download and transform all mail for an authenticated identity in one step
Fields
alias: Option<String>Alias of the identity to sync, as registered via authenticate.
Interactively selected from the authenticated identities when omitted.
local_output: Option<PathBuf>Local directory to stage raw .eml files under staging/ and
write transformed Markdown output under result/. The staging
side is transient by default: each message is deleted once its
transform is verified. Only persists when –debug sink is used
and the default flow is never run against it afterward. Defaults
to a per-alias directory under the OS temp directory when omitted.
remote_output: Option<String>Alias of a configured bucket-config (see pigeon dataops bucket-config new) to upload each synced message’s Markdown and
attachments to, in addition to –local-output. Rejected as a
usage error when combined with –debug (sink/transform stay
local-only).
debug: Option<DebugPhase>Run only one phase, exactly as it behaved standalone before this command existed: “sink” fetches without transforming; “transform” transforms without fetching. Both are non-destructive (never delete the source .eml).
Trait Implementations§
Source§impl Debug for EmailCommands
impl Debug for EmailCommands
Source§impl FromArgMatches for EmailCommands
impl FromArgMatches for EmailCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for EmailCommands
impl Subcommand for EmailCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand