l.b.m.b.BugNotificationBuilder : class documentation

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

Constructs a MIMEText message for a bug notification.

Takes a bug and a set of headers and returns a new MIMEText object. Common and expensive to calculate headers are cached up-front.

Method __init__ Undocumented
Method build Construct the notification.
def __init__(self, bug, event_creator=None):
Undocumented
def build(self, from_address, to_person, body, subject, email_date, rationale=None, references=None, message_id=None, filters=None):
Construct the notification.
Parametersfrom_addressThe From address of the notification.
to_personThe IPerson to use as the To address for the notification.
bodyThe body text of the notification. (type: unicode)
subjectThe Subject of the notification.
email_dateThe Date for the notification.
rationaleThe rationale for why the recipient is receiving this notification.
referencesA value for the References header.
message_idA value for the Message-ID header.
ReturnsAn email.mime.text.MIMEText object.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.