c.l.m.incoming : module documentation

Part of canonical.launchpad.mail

Functions dealing with mails coming into Launchpad.
Function canonicalise_line_endings Canonicalise the line endings to 'rn'.
Class InvalidSignature The signature failed to validate.
Class InactiveAccount The account for the person sending this email is inactive.
Function extract_address_domain Undocumented
Function authenticateEmail Authenticates an email by verifying the PGP signature.
Class MailErrorUtility An error utility that doesn't ignore exceptions.
Function report_oops Record an OOPS for the current exception and return the OOPS ID.
Function handleMail Undocumented
Function _isDkimDomainTrusted Undocumented
Function _authenticateDkim "Attempt DKIM authentication of email; return True if known authentic
def canonicalise_line_endings(text):

Canonicalise the line endings to 'rn'.

>>> canonicalise_line_endings('\n\nfoo\nbar\rbaz\r\n')
'\r\n\r\nfoo\r\nbar\r\nbaz\r\n'
>>> canonicalise_line_endings('\r\rfoo\r\nbar\rbaz\n')
'\r\n\r\nfoo\r\nbar\r\nbaz\r\n'
>>> canonicalise_line_endings('\r\nfoo\r\nbar\nbaz\r')
'\r\nfoo\r\nbar\r\nbaz\r\n'
def extract_address_domain(address):
Undocumented
def _isDkimDomainTrusted(domain):
Undocumented
def _authenticateDkim(signed_message):
"Attempt DKIM authentication of email; return True if known authentic
Parameterssigned_messageISignedMessage
def authenticateEmail(mail):
Authenticates an email by verifying the PGP signature.

The mail is expected to be an ISignedMessage.

def report_oops(file_alias_url=None, error_msg=None):
Record an OOPS for the current exception and return the OOPS ID.
def handleMail(trans=transaction):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.