On 1/1/20 8:09 AM, ritwik p wrote:
A doubt though: I set-ed my list's
unsubscription_policy
toconfirm_then_moderate
and it showed : <SubscriptionPolicy.confirm_then_moderate: 3>. What does "3" mean (same thing for <SubscriptionPolicy.confirm: 1>) ? is it option number?
SubscriptionPolicy is an enum. enums have names and numeric values. Look at the definition.
Also, I think the docs need to be updated, as when i set-ed my list's
unsubscription_policy
toconfirm_then_moderate
in the mailman shell and exited the shell, it reverted back toconfirm
and it took me quite some time to figure out the commandcommit()
to keep the mentioned change.
In mailman shell everything you change is part of a transaction. At any point you can commit() to commit the transaction or abort() to abort it. exit() will exit without committing, but control-D will do an implicit commit upon exit.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan