def getUsers(): "This function returns a list of users from mailman" p=subprocess.Popen(["/usr/lib/mailman/bin/list_members","listname"],stdout=subprocess.PIPE) lines=p.stdout.readlines() p.wait return(lines)
OpenPGP_signature.asc
Description: OpenPGP digital signature
------------------------------------------------------ Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/ Member address: arch...@mail-archive.com