26 Oct
2021
26 Oct
'21
6:03 p.m.
On 10/26/21 5:14 AM, Christian Stalberg via Mailman-users wrote:
Yes I upgraded to a version >=3.3.1 and had 70 subscribers disabled. Is there a way to see via the web GUI which subscribers were disabled? Correspondingly, can I re-enable delivery for them via the web GUI?
Only one at a time. You could modify the shell session I posted previously to just display the members.
$ 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.
>>> lm = getUtility(IListManager)
>>> for mlist in lm.mailing_lists:
... for member in mlist.members.members:
... if member.delivery_status == DeliveryStatus.by_bounces:
... print('Delivery disabled by bounce for member {} on list {}'
... .format(member.address.email, mlist.list_name))
...
<print output here>
>>> exit()
Alternatively you can script some mailman commands as in
#!/bin/bash
for list in `bin/mailman lists|sed '1d'`; do
echo $list
bin/mailman members --nomail bybounces $list
done
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan