Package lamson :: Module mail
[hide private]
[frames] | no frames]

Module mail

source code

The lamson.mail module contains nothing more than wrappers around the big work done in lamson.encoding. These are the actual APIs that you'll interact with when doing email, and they mostly replicate the lamson.encoding.MailBase functionality.

The main design criteria is that MailRequest is mostly for reading email that you've received, so it doesn't have functions for attaching files and such. MailResponse is used when you are going to write an email, so it has the APIs for doing attachments and such.

Classes [hide private]
  MailRequest
This is what's handed to your handlers for you to process.
  MailResponse
You are given MailResponse objects from the lamson.view methods, and whenever you want to generate an email to send to someone.
Functions [hide private]
 
_decode_header_randomness(addr)
This fixes the given address so that it is *always* a set() of just email addresses suitable for routing.
source code
Variables [hide private]
  ROUTABLE_TO_HEADER = 'to'
  __package__ = 'lamson'
Function Details [hide private]

_decode_header_randomness(addr)

source code 

This fixes the given address so that it is *always* a set() of just email addresses suitable for routing.


Variables Details [hide private]

ROUTABLE_TO_HEADER

Value:
'to'

__package__

Value:
'lamson'