On Tuesday, 19 May 2026 20:15:47 CEST Mark Sapiro wrote:
> 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.

This works like a charm.

Thanks a lot,
 Andreas


_______________________________________________
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/GRAPXS33KMR4E42LVEYVQNBDRRLHRCPK/

This message sent to [email protected]

Reply via email to