28 Jul
2020
28 Jul
'20
1:28 a.m.
On 7/27/20 6:22 PM, Mark Sapiro wrote:
To do several lists:
mailman shell from mailman.models.mailinglist import MailingList mlist = MailingList('first.list.id') mlist.emergency = False commit() mlist = MailingList('second.list.id') mlist.emergency = False commit()
And so on for more lists.
Ooops... The above is not correct. The correct import is
from mailman.model.mailinglist import MailingList
i.e. model, not models and the arguments to MailingList are the list posting address, not the list-id. I.e.
mlist = MailingList('list@example.com')
and not
mlist = MailingList('list.example.com')
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan