detecting pending subscriptions across many lists?
![](https://secure.gravatar.com/avatar/c3c4ce72a68266355f51f0006a576199.jpg?s=120&d=mm&r=g)
On lists.gnu.org, we have some 3300 mailman lists. Is there any way to know, or even probabilistically guess, which have pending subscriptions, short of running list_requests on every one?
For pending messages, we can look for the presence of heldmsg-* files in the mailman data dir (/var/lib/mailman/data for us), but I've been unable to discern the existence of pending subscriptions anywhere except in config.pck.
I also couldn't discern a way to grep in config.pck (which would be much faster than list_requests). Is there some sequence that will only appear with pending subscriptions? Looking at one list with a pending subscription now, I see the byte string e64d 4b07 4b05 741d 014b 5574 4110 occuring before the address that wants to subscribe, but not sure if that, or any part of it, would be a reliable thing to look for.
We appear to be running mailman 2.1.29. Not sure if it is the distro version (Trisquel GNU/Linux 9.0.2) or installed from the original source, but guessing that probably doesn't matter for this.
Any info greatly appreciated. --thanks, karl.
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 5/29/22 15:45, Karl Berry wrote:
By list_requests, do you mean https://www.msapiro.net/scripts/list_requests? If so, just running it with no arguments will process all lists.
They are not in config.pck. They are in pending.pck. See Mailman/Pending.py for more info.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/c3c4ce72a68266355f51f0006a576199.jpg?s=120&d=mm&r=g)
By list_requests, do you mean
https://www.msapiro.net/scripts/list_requests?
Yes. (Thank you again for all your helper scripts.)
If so, just running it with no arguments will process all lists.
Yes, that's probably the best way. It just takes a while with so many lists, so I was pondering some kind of shortcut.
They are not in config.pck. They are in pending.pck. See
Mailman/Pending.py for more info.
I actually see the pending subscriptions in request.pck, not pending.pck, but thanks for the pointer. Got me to look further :).
Thanks, Karl
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 5/29/22 15:45, Karl Berry wrote:
By list_requests, do you mean https://www.msapiro.net/scripts/list_requests? If so, just running it with no arguments will process all lists.
They are not in config.pck. They are in pending.pck. See Mailman/Pending.py for more info.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/c3c4ce72a68266355f51f0006a576199.jpg?s=120&d=mm&r=g)
By list_requests, do you mean
https://www.msapiro.net/scripts/list_requests?
Yes. (Thank you again for all your helper scripts.)
If so, just running it with no arguments will process all lists.
Yes, that's probably the best way. It just takes a while with so many lists, so I was pondering some kind of shortcut.
They are not in config.pck. They are in pending.pck. See
Mailman/Pending.py for more info.
I actually see the pending subscriptions in request.pck, not pending.pck, but thanks for the pointer. Got me to look further :).
Thanks, Karl
participants (2)
-
Karl Berry
-
Mark Sapiro