17 Jun
2022
17 Jun
'22
1:33 a.m.
On 6/16/22 16:32, Mark Sapiro wrote:
A
mailman shell
interaction like this is better.$ ./mailman shell -l list.example.com Welcome to the GNU Mailman shell Use commit() to commit changes. Use abort() to discard changes since the last commit. Exit with ctrl+D does an implicit commit() but exit() does not. The variable 'm' is the list.example.com mailing list >>> util = getUtility(IPendings) >>> for token, data in util.find(mlist=m, pend_type='subscription'): ... if data.token_owner == 'subscriber': ... util.confirm(token, expunge=True) ... >>> commit() >>>
There's an error in the above. The line
if data.token_owner == 'subscriber':
should be
if data['token_owner'] == 'subscriber':
Sorry for any confusion.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan