I use the following REST-API sequence (excerpt:) to create a list but want to
use the much quicker command line. However, only a few [OPTIONS] can be set via
command line.
Why?
My wish is to have all options available in the command line of mailman?
Excerpt from my generateMailinglists.py:
# see
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/listconf.html
updates = {
"description": f"{ML} {listname} ({NOW})",
"info": f"{ML} {listname} (autogenerated {NOW})",
"display_name": listname,
"subject_prefix": f"[{listname.upper()}] ",
"advertised": False, # the list will not be shown on mailman3
startpage
"allow_list_posts": True,
"default_nonmember_action": "discard",
"default_member_action": "accept",
"subscription_policy": "open", # accepted values are: open,
confirm, moderate, confirm_then_moderate
"unsubscription_policy": "open", # accepted values are: open,
confirm, moderate, confirm_then_moderate
"send_welcome_message": False,
"send_goodbye_message": False,
"archive_policy": "private", # accepted values are: public,
private, never
"preferred_language": "de",
"member_roster_visibility": "members" # accepted values are:
public, members, moderators
}
update_config(fqdn_listname, updates)
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/[email protected]/message/CIQ2USX7BW3RMSSJGXXGDELXVMGA7YKS/
This message sent to [email protected]