25 May
2023
25 May
'23
2:28 p.m.
--On Wednesday, May 24, 2023 6:11 PM -0700 Mark Sapiro <mark@msapiro.net> wrote:
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()
Thanks Mark! I had to change it to pend_type='subscription' but other than that it worked! :)
Regards, Quanah