17 Mar
2022
17 Mar
'22
1:54 a.m.
On 3/16/22 12:56, Quanah Gibson-Mount wrote:
Thanks for the response. Unfortunately I'm currently stuck with the junk shipped by Debian. Yet another reason to move to a standalone install and avoid their broken packages.
In the mean time, you can handle these issues via REST or via mailman shell
. For example:
$ 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.
>>> pendings = getUtility(IPendings)
>>> sub_mgr = ISubscriptionManager(m)
>>> for token, data in pendings.find(pend_type='subscription'):
... if data['token_owner'] != 'subscriber':
... continue
... if data['email'] != 'user@example.com':
... continue
... sub_mgr.confirm(token)
...
>>> commit()
The above will find the pending confirmation for user@example.com on the list list@example.com and confirm it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan