On 5/22/23 13:46, Jens Günther wrote:
Since we migrate some lists from mailman2 to 3, there are a lot of new users/subscribers and an admin made the mistake to not checkbox the 3. option that the users don't need to verify their address.
Are these newly added users since the migration? If you migrate a list
with the mailman import21
the users of the MM 2.1 list will be
imported and there won't be confirmations.
Now we have a long list of pending confirmations in different lists. Is there an easy way in the shell to mass remove these pending mailaddresses so that we don't have to do that one by one? That would be awsome.
Do you want to remove them or confirm them. If you just remove them, the user's addresses will still be unconfirmed.
If you just want to remove them so you can redo the mass subscribes, you
could do something like the following in mailman shell
>>> pendings = getUtility(IPendings)
>>> for token, data in pendings.find(
token_owner=TokenOwner.subscriber,
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