10 Feb
2022
10 Feb
'22
1:01 a.m.
On 2/9/22 16:12, Philippe B wrote:
Ah, thanks for that.
I've done
owner.preferences.delivery_status = DeliveryStatus.enabled
for those 2 lists.Is there an easy way to find out all the other owners that don't have
<DeliveryStatus.enabled: 1>
?
$ bin/mailman shell
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
>>> for mlist in getUtility(IListManager).mailing_lists:
... for admin in mlist.administrators.members:
... if admin.delivery_status != DeliveryStatus.enabled:
... print(f'List: {mlist.list_name}, '
... f'Admin: {admin.address.email}, '
... f'Role: {admin.role}, '
... f'Status: {admin.delivery_status}')
And optionally,
... admin.preferences.delivery_status = DeliveryStatus.enabled
... print('Enabled.')
...
(output here)
>>> commit()
>>>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan