Hi all:
I need to provide the list moderators a way to change the moderation flag for users from whichever it is (normally "list default processing") to "hold for moderation" and viceversa (to "list default" or to "accept")
I understand that it could be done via console script (That's the way I did on mailman2: I made two commands using "withlist", one to hold, moderar.py, and other one to accept, desmoderar.py. I show you below)
But I think I'm not the only one that could use as an improvement a way to do this on postorius/web.
Before to trying implementing them on mailman3, I beg you to tell me if they could do that on mailman3.
Thanks in advance.
****************** (moderar.py)
#! /usr/local/bin/python # # script via withlist para moderar a pelo #
"""moderar un miembro.
Save as bin/moderar.py
Run via
bin/withlist -r moderar <listname> <member> """
from Mailman import mm_cfg
def moderar(mlist, member): if not mlist.Locked(): mlist.Lock() mlist.setMemberOption(member, mm_cfg.Moderate, True) mlist.Save() mlist.Unlock()
****************** (desmoderar.py)
#! /usr/local/bin/python # # script via withlist para desmoderar un miembro #
"""desmoderar un miembro.
Save as bin/desmoderar.py
Run via
bin/withlist -r desmoderar <listname> <member> """
from Mailman import mm_cfg
def desmoderar(mlist, member): if not mlist.Locked(): mlist.Lock() mlist.setMemberOption(member, mm_cfg.Moderate, False) mlist.Save() mlist.Unlock()
--