l.r.m.notification : module documentation

Part of lp.registry.mail

Event handlers that send email notifications.
Function notify_invitation_to_join_team Notify team admins that the team has been invited to join another team.
Function notify_team_join Notify team admins that someone has asked to join the team.
Function notify_mailinglist_activated Notification that a mailing list is available.
Function notify_message_held Send a notification of a message hold to all team administrators.
Function encode Encode string for transport in a mail header.
Function send_direct_contact_email Send a direct user-to-user email.
@block_implicit_flushes
def notify_invitation_to_join_team(event):
Notify team admins that the team has been invited to join another team.

The notification will include a link to a page in which any team admin can accept the invitation.

@block_implicit_flushes
def notify_team_join(event):
Notify team admins that someone has asked to join the team.

If the team's policy is Moderated, the email will say that the membership is pending approval. Otherwise it'll say that the person has joined the team and who added that person to the team.

def notify_mailinglist_activated(mailinglist, event):
Notification that a mailing list is available.

All active members of a team and its subteams receive notification when the team's mailing list is available.

def notify_message_held(message_approval, event):
Send a notification of a message hold to all team administrators.
def encode(value):
Encode string for transport in a mail header.
ParametersvalueThe raw email header value. (type: unicode)
ReturnsThe encoded header. (type: email.header.Header)
def send_direct_contact_email(sender_email, recipients_set, person_or_team, subject, body):
Send a direct user-to-user email.
Parameterssender_emailThe email address of the sender. (type: string)
recipients_setThe recipients. (type: ContactViaWebNotificationSet)
person_or_teamThe party that is the context of the email. (type: IPerson)
subjectThe Subject header. (type: unicode)
bodyThe message body. (type: unicode)
ReturnsThe sent message. (type: email.message.Message)
API Documentation for Launchpad, generated by pydoctor at 2018-05-23 00:00:09.