Trees Indices Help
Trac
Package trac :: Package tests :: Module notification

Module notification

source code

Classes
SMTPServerInterface
A base class for the imlementation of an application specific SMTP Server.
SMTPServerEngine
Server engine that calls methods on the SMTPServerInterface object passed at construction time.
SMTPServer
A single threaded SMTP Server connection manager.
SMTPServerStore
Simple store for SMTP data
SMTPThreadedServer
Run a SMTP server for a single connection, within a dedicated thread
Functions
strip_address(address)
Strip the leading & trailing <> from an address. source code
split_to(address)
Return 'address' as undressed (host, fulladdress) tuple. source code
smtp_address(fulladdr) source code
decode_header(header)
Decode a MIME-encoded header value source code
parse_smtp_message(msg)
Split a SMTP message into its headers and body. source code
Variables
LF = '\n'
CR = '\r'
email_re = re.compile(r'([\w\d_\.-])+@(([\w\d-])+\.)+([\w\d]{2...
header_re = re.compile(r'^=\?(?P<charset>[\w\d-]+)\?(?P<code>[...
__package__ = 'trac.tests'

Imports: socket, string, threading, re, base64, quopri


Function Details

strip_address(address)

source code
Strip the leading & trailing <> from an address. Handy for getting FROM: addresses.

split_to(address)

source code
Return 'address' as undressed (host, fulladdress) tuple. Handy for use with TO: addresses.

parse_smtp_message(msg)

source code
Split a SMTP message into its headers and body. Returns a (headers, body) tuple We do not use the email/MIME Python facilities here as they may accept invalid RFC822 data, or data we do not want to support nor generate

Variables Details

email_re

Value:
re.compile(r'([\w\d_\.-])+@(([\w\d-])+\.)+([\w\d]{2,4})+')

header_re

Value:
re.compile(r'^=\?(?P<charset>[\w\d-]+)\?(?P<code>[qb])\?(?P<value>.*)\\
?=$')

Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /