l.s.m.m.lpmoderate : module documentation

Part of lp.services.mailman.monkeypatches

A pipeline handler for holding list non-members postings for approval.
Function process Handle all list non-member postings.
Function is_message_empty Is the message missing a text/plain part with content?
Function hold Hold the message in both Mailman and Launchpad.
def process(mlist, msg, msgdata):
Handle all list non-member postings.

For Launchpad members who are not list-members, a previous handler will check their personal standing to see if they are allowed to post. This handler takes care of all other cases and it overrides Mailman's standard Moderate handler. It also knows how to hold messages in Launchpad's librarian.

def is_message_empty(msg):
Is the message missing a text/plain part with content?
def hold(mlist, msg, msgdata, annotation):
Hold the message in both Mailman and Launchpad.

annotation is an arbitrary string required by the API.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.