[Mailman-Users] get a list's subscribe_policy via the command line

Mark Sapiro mark at msapiro.net
Fri Nov 3 10:35:09 EDT 2017

On 11/02/2017 04:28 PM, Erin Test wrote:
> I've been looking around and I'm not sure it exists but figured I would check here.  I'm looking for a way to get a list's subscribe_policy from the command line.  
> We are syncing our lists with some user lists in our system but I only want to do this from mailman if 'require approval' or 'confirm and approve' are set.  If anyone has any thoughts on how to verify this I'd appreciate the pointers.

for list in `bin/list_lists -b`;do
  echo $list
  bin/config_list -o- $list|grep 'subscribe_policy = [23]'

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list