On August 3, 2026 4:20:36 PM PDT, iMark <imark@posteo.net> wrote:
The variable 'm' is the mylist@lists.mydomain.com mailing list
mailman.interfaces.member import DeliveryMode for member in m.subscribers: File "<console>", line 1 mailman.interfaces.member import DeliveryMode for member in m.subscribers: ^^^^^^ SyntaxError: invalid syntax
It looks like your line breaks are not correct.
The line should be
from mailman.interfaces.member import DeliveryMode
And
for member in m.subscribers:
is a separate line. It appears the 'from' is missing and maybe a line break is missing.
Also, in mailman shell in interactive mode, the import line is not required at all as those things are all imported automatically, but in a script as Steve also suggested, the import is required.
-- Mark Sapiro <mark@msapiro.net> Sent from my Not_an_iThing with standards compliant, open source software.