On 11/3/19 6:58 PM, Alan So wrote:
Are there any pointer of documentation that I can clear all _these_nonmembers settings by updating the databases directly or using mailman shell? I am not so familiar with mailman shell though. We expect list owners use moderation_action only for members and non-members.
$ bin/mailman shell -l test.example.com Welcome to the GNU Mailman shell The variable 'm' is the test.example.com mailing list
m.accept_these_nonmembers = [] m.hold_these_nonmembers = [] m.reject_these_nonmembers = [] m.discard_these_nonmembers = []
That will just blindly clear them all.
If you want to see what you're clearing, you could do things like
if m.accept_these_nonmembers: ... m.accept_these_nonmembers ... m.accept_these_nonmembers = [] ...
which if the list's accept_these_nonmembers is non-empty will display it and then set it empty.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan