On 5/19/26 2:54 AM, Andreas Vetter wrote:
Is there a script to discard all tose requests and get the members back on the
list?
A mailman shell interaction like this should do it.
$ 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.
>>> pendings = getUtility(IPendings)
>>> for token, data in pendings.find(pend_type='unsubscription'):
... if data and data['list_id'] == 'the_list.example.com':
... pendings.confirm(token, expunge=True)
...
>>> commit()
In the above, replace the_list.example.com with the actual list_id (the
list posting address with '@' replaced with '.')
If there are no other lists with pending unsubscriptions, you can omit
the `and data['list_id'] == 'the_list.example.com'` check.
--
Mark Sapiro <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/[email protected]/message/FBVMMNL4YW4HLWOKJLOK4K7AKREMAUZW/
This message sent to [email protected]