Part of canonical.launchpad.mail
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 |
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'
Parameters | signed_message | ISignedMessage |
The mail is expected to be an ISignedMessage.