l.b.m.h.MaloneHandler : class documentation

Part of lp.bugs.mail.handler View In Hierarchy

Handles emails sent to Malone.

It only handles mail sent to new@... and $bugid@..., where $bugid is a positive integer.

Method getCommands Returns a list of all the commands found in the email.
Method extractAndAuthenticateCommands Extract commands and handle special destinations.
Method process See IMailHandler.
Method sendHelpEmail Send usage help to to_address.
Method processAttachments Create Bugattachments for "reasonable" mail attachments.
Method appendBugComment Append the message text to the bug comments.
Method notify_bug_event Undocumented
Method notify_bugtask_event Undocumented
Method handleNoAffectsTarget Undocumented
Method handleNoDefaultAffectsTarget Undocumented
def getCommands(self, signed_msg):
Returns a list of all the commands found in the email.
def extractAndAuthenticateCommands(self, signed_msg, to_addr):
Extract commands and handle special destinations.

NB: The authentication is carried out against the current principal, not directly against the message. authenticateEmail must previously have been called on this thread.

Returns(final_result, add_comment_to_bug, commands) If final_result is non-none, stop processing and return this value to indicate whether the message was dealt with or not. If add_comment_to_bug, add the contents to the first bug selected. commands is a list of bug commands.
def process(self, signed_msg, to_addr, filealias=None, log=None):
See IMailHandler.
def sendHelpEmail(self, to_address):
Send usage help to to_address.
def processAttachments(self, bug, message, signed_mail):
Create Bugattachments for "reasonable" mail attachments.

A mail attachment is stored as a bugattachment if its content type is not listed in irrelevant_content_types.

def appendBugComment(self, bug, signed_msg, filealias=None):
Append the message text to the bug comments.
def notify_bug_event(self, bug_event):
Undocumented
def notify_bugtask_event(self, bugtask_event, bug_event):
Undocumented
def handleNoAffectsTarget(self):
Undocumented
def handleNoDefaultAffectsTarget(self, bug):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.