On 1/5/22 12:48 AM, Henrik Rasmussen wrote:
It seems that I was right, however, I need to re-enable all members on a single list who have been disabled due to bounces.
Using the
mailman members
command it is possible to list such members, however how do I enable them using either themailman shell
command (available) og the mailmanclient (needs first to be installed in the docker container)?
There is a mailman shell
session in the post at
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
that will re-enable all bounce disabled members on all lists. To do just
a single list do something like
$ bin/mailman shell -l list.example.com
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.
The variable 'm' is the list.example.com mailing list
>>> for member in m.members.members:
... if member.delivery_status == DeliveryStatus.by_bounces:
... member.preferences.delivery_status = DeliveryStatus.enabled
... print("Re-enabled delivery for bouncing member {} on list {}"
... .format(member.address.email, mlist.list_name))
...
<print output here>
>>> commit()
>>> exit()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan