Back to index

python3.2  3.2.2
Namespaces | Functions | Variables
email Namespace Reference

Namespaces

namespace  _parseaddr
namespace  base64mime
namespace  charset
namespace  encoders
namespace  errors
namespace  feedparser
namespace  generator
namespace  header
namespace  iterators
namespace  message
namespace  mime
namespace  parser
namespace  quoprimime
namespace  test
namespace  utils

Functions

def message_from_string
def message_from_bytes
def message_from_file
def message_from_binary_file

Variables

string __version__ = '5.1.0'
list __all__

Function Documentation

def email.message_from_binary_file (   fp,
  args,
  kws 
)
Read a binary file and parse its contents into a Message object model.

Optional _class and strict are passed to the Parser constructor.

Definition at line 57 of file __init__.py.

00057 
00058 def message_from_binary_file(fp, *args, **kws):
00059     """Read a binary file and parse its contents into a Message object model.
00060 
00061     Optional _class and strict are passed to the Parser constructor.
00062     """
00063     from email.parser import BytesParser
00064     return BytesParser(*args, **kws).parse(fp)

Here is the call graph for this function:

Here is the caller graph for this function:

def email.message_from_bytes (   s,
  args,
  kws 
)
Parse a bytes string into a Message object model.

Optional _class and strict are passed to the Parser constructor.

Definition at line 41 of file __init__.py.

00041 
00042 def message_from_bytes(s, *args, **kws):
00043     """Parse a bytes string into a Message object model.
00044 
00045     Optional _class and strict are passed to the Parser constructor.
00046     """
00047     from email.parser import BytesParser
00048     return BytesParser(*args, **kws).parsebytes(s)

Here is the caller graph for this function:

def email.message_from_file (   fp,
  args,
  kws 
)
Read a file and parse its contents into a Message object model.

Optional _class and strict are passed to the Parser constructor.

Definition at line 49 of file __init__.py.

00049 
00050 def message_from_file(fp, *args, **kws):
00051     """Read a file and parse its contents into a Message object model.
00052 
00053     Optional _class and strict are passed to the Parser constructor.
00054     """
00055     from email.parser import Parser
00056     return Parser(*args, **kws).parse(fp)

Here is the call graph for this function:

Here is the caller graph for this function:

def email.message_from_string (   s,
  args,
  kws 
)
Parse a string into a Message object model.

Optional _class and strict are passed to the Parser constructor.

Definition at line 33 of file __init__.py.

00033 
00034 def message_from_string(s, *args, **kws):
00035     """Parse a string into a Message object model.
00036 
00037     Optional _class and strict are passed to the Parser constructor.
00038     """
00039     from email.parser import Parser
00040     return Parser(*args, **kws).parsestr(s)

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 [
00002     'base64mime',
00003     'charset',
00004     'encoders',
00005     'errors',
00006     'generator',
00007     'header',
00008     'iterators',
00009     'message',
00010     'message_from_file',
00011     'message_from_binary_file',
00012     'message_from_string',
00013     'message_from_bytes',
00014     'mime',
00015     'parser',
00016     'quoprimime',
00017     'utils',
00018     ]

Definition at line 9 of file __init__.py.

Definition at line 7 of file __init__.py.