On 18/9/21 20:42, Guillermo Hernandez (Oldno7) via Mailman-users wrote:
On 18/9/21 20:27, Mark Sapiro wrote:
from mailman.interfaces.action import Action def moderar(mlist, member): memb = mlist.members.get_member(member) if not memb: print('{} is not a list member.'.format(member)) return memb.moderation_action = Action.hold print('{} moderation_action set to hold.'.format(member))
Just a one more silly question:
Where do I can find the diferent values that memb.moderation_action can take? (I want to prepare the "unhold" script too)
Thanks in advance.
That completely did it. The problem about finding the module was completely gone when I made a soft link in the same directory where mailman command is (in /usr/local/bin, for your info).
Thank you very, very much.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/