7 Sep
2023
7 Sep
'23
8:28 p.m.
On 9/7/23 13:07, Mohsen Masoudfar wrote:
Continuing the troubleshooting, I came around a very long list, over 3000, of "banned addresses" on the 'problem list'. I wonder if there is a way to delete them programmatically.
$ /opt/mailman/mm/bin/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
>>> bm = IBanManager(m)
>>> for ban in bm.bans:
... bm.unban(ban.email)
...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan