Enum mailpot_cli::args::ListCommand
source · pub enum ListCommand {
Show 16 variants
Subscriptions,
AddSubscription {
address: String,
subscription_options: SubscriptionOptions,
},
RemoveSubscription {
address: String,
},
UpdateSubscription {
address: String,
subscription_options: SubscriptionOptions,
},
AddPostPolicy {
announce_only: bool,
subscription_only: bool,
approval_needed: bool,
open: bool,
custom: bool,
},
RemovePostPolicy {
pk: i64,
},
AddSubscriptionPolicy {
send_confirmation: bool,
open: bool,
manual: bool,
request: bool,
custom: bool,
},
RemoveSubscriptionPolicy {
pk: i64,
},
AddListOwner {
address: String,
name: Option<String>,
},
RemoveListOwner {
pk: i64,
},
EnableSubscription {
address: String,
},
DisableSubscription {
address: String,
},
Update {
name: Option<String>,
id: Option<String>,
address: Option<String>,
description: Option<String>,
archive_url: Option<String>,
owner_local_part: Option<String>,
request_local_part: Option<String>,
verify: Option<bool>,
hidden: Option<bool>,
enabled: Option<bool>,
},
Health,
Info,
ImportMembers {
url: String,
username: String,
password: String,
list_id: String,
dry_run: bool,
skip_owners: bool,
},
}
Variants§
Subscriptions
List subscriptions of list.
AddSubscription
Add subscription to list.
RemoveSubscription
Remove subscription from list.
UpdateSubscription
Update subscription info.
AddPostPolicy
Fields
Add a new post policy.
RemovePostPolicy
AddSubscriptionPolicy
Fields
Add subscription policy to list.
RemoveSubscriptionPolicy
AddListOwner
Add list owner to list.
RemoveListOwner
EnableSubscription
Alias for update-subscription –enabled true.
DisableSubscription
Alias for update-subscription –enabled false.
Update
Fields
request_local_part: Option<String>
New request address local part. If empty, it defaults to ‘+request’.
verify: Option<bool>
Require verification of e-mails for new subscriptions.
Subscriptions that are initiated from the subscription’s address are verified automatically.
Public visibility of list.
If hidden, the list will not show up in public APIs unless requests to it won’t work.
Update mailing list details.
Health
Show mailing list health status.
Info
Show mailing list info.
ImportMembers
Fields
Import members in a local list from a remote mailman3 REST API instance.
To find the id of the remote list, you can check URL/lists. Example with curl:
curl –anyauth -u admin:pass “http://localhost:9001/3.0/lists”
If you’re trying to import an entire list, create it first and then import its users with this command.
Example: mpot -c conf.toml list list-general import-members –url “http://localhost:9001/3.0/” –username admin –password password –list-id list-general.example.com –skip-owners –dry-run
Trait Implementations§
source§impl Debug for ListCommand
impl Debug for ListCommand
source§impl FromArgMatches for ListCommand
impl FromArgMatches for ListCommand
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 ListCommand
impl Subcommand for ListCommand
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
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommand