On 9/17/22 10:03, Allan Hansen wrote:
Hi Mike,
Yes, the users can be subscribed, but they think that they can't because it seems they are until the moderator accepts them.
I tried your script again, with nothing happening. So I tried this:
a = 1 b = 1 for l in lm:
... print(a) ... a = a+1 ... for nm in l.nonmembers.members: ... print(b) ... b = b + 1 ... nm.unsubscribe() ...
commit() print(a) 1 print(b) 1
It appears that lm can't see the lists (I have 50+ of them).
Did you start with
lm = getUtility(IListManager)
?
What if you do
>>> lm = getUtility(IListManager)
>>> for l in lm:
... print(l.posting_address)
...
That should print the posting address for all the lists.
What does mailman info
show? In particular, for config file:
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan