25 May
2023
25 May
'23
12:11 a.m.
On 5/24/23 16:07, Quanah Gibson-Mount wrote:
Package: mailman3 Version: 3.2.1-1
For that version pendings don't have a token_owner. This script will delete all pending subscriptions, even those waiting moderator approval, so if there are any of those, they should be handled first.
>>> pendings = getUtility(IPendings)
>>> for token, data in pendings.find(
... pend_type=subscription):
... pendings.confirm(token, expunge=True)
...
>>> commit()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan