26 Oct
2017
26 Oct
'17
6:30 p.m.
On 10/26/2017 11:20 AM, Mark Sapiro wrote:
$ bin/mailman shell Welcome to the GNU Mailman shell
from zope.component import getUtility from mailman.interfaces.listmanager import IListManager
Actually, at least in the latest Mailman shell, the above two lines are not deeded as getUtility and the various interfaces are all in the initial namespace.
This should be enough
listmanager = getUtility(IListManager) for mlist in listmanager.mailing_lists: ... print(mlist.list_name) ... mlist.send_welcome_message = False ... mlist.send_goodbye_message = False ... commit() ...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan