On 8/1/22 06:31, Max wrote:
I have for each mailinglist 2023 open signup requests.
that means If I want to delete and ban every one of them 4046 mouse
clicks in the admin back-end. But as you see there are lots of duplicates.
If your Mailman is >= 2.1.30, there is a REFUSE_SECOND_PENDING mm_cfg.py
setting that will cause a second request to subscribe to a list when
there is already a pending confirmation for that user.
You can also delete all these pending subs with a withlist script.
Here's an interactive example:
```
$ ./withlist -i
No list name supplied.
Python 2.7.18 (default, Jul 1 2022, 12:27:04)
[GCC 9.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> for list in Utils.list_names():
... mlist = MailList(list, lock=True)
... for id in mlist.GetSubscriptionIds():
... try:
... mlist.HandleRequest(id, mm_cfg.DISCARD)
... except:
... pass
... mlist.Unlock()
...
>>>
```
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/