On 4/26/21 3:53 AM, John Elliot V | ProgClub wrote:
> 
> What would be great is if there were a command line program I could run
> to delete all pending subscription requests, is there such a thing?


There are several issues with pending requests that are fixed in Mailman
core 3.3.5 (not yet released) including a new task runner to
periodically delete expired requests and cache entries, but there are
still issues with (un)subscription requests waiting user confirmation
that were originally pended with too long a lifetime. The attached
script fixes those, but it won't help you as is, because your requests
are moderator requests.  However, if you change the line
```
       if values and values['token_owner'] == 'subscriber':
```
in the script to
```
       if values:
```
it should delete any pending subscription requests older than 3 days (or
the configured pending_request_life).

You could also replace the config.mailman.pending_request_life argument
to as_timedelta() with a shorter time such as '1d' or '12h'


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

Reply via email to