
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 <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan