su list -s /usr/bin/mailman -- shell -l test@lists.ceddral.org from mailman.interfaces.requests import IListRequests from mailman.interfaces.action import Action from mailman.app.moderator import handle_message requests = IListRequests(m) requests.count id = requests.of_type(RequestType.held_message)[0].id id json = requests.get_request(id) json[1]['moderation_sender'] handle_message(m, id, Action.accept)