Home | Trees | Indices | Help |
|
---|
|
Useful functions to parse emails
|
|||
MailPart Data related to a mail part (aka message content, attachment or embedded content in an email) |
|||
PyzMessage Inherit from email.message.Message. |
|||
PzMessage Old name and interface for PyzMessage. |
|
|||
str |
|
||
|
|||
list |
|
||
None or unicode |
|
||
|
|||
dict |
|
||
list |
|
||
tuple |
|
||
PyzMessage |
|
||
PyzMessage |
|
||
PyzMessage |
|
||
PyzMessage |
|
|
|||
quoted =
|
|||
email_address_re = re.compile(r'^ a regex that match well formed email address (from perlfaq9) |
|||
_line_end_re = re.compile(r'\r\n
|
|||
__package__ =
|
|||
invalid_chars_in_filename =
|
|||
invalid_windows_name =
|
|
Convert header returned by Py3k
|
Decode a header value into a unicode string. Works like a more smarter
python
|
retrieve all email addresses from one message header
|
Find the filename of a mail part. Many MUA send attachments with the filename in the name parameter of the Content-type header instead of in the filename parameter of the Content-Disposition header.
|
recursive search of message content (text or HTML) inside the structure of the email. Used by search_message_content()
|
search of message content (text or HTML) inside the structure of the
mail. This function is used by get_mail_parts() to set the
|
return a list of all parts of the message as a list of MailPart. Retrieve parts attributes to fill in MailPart object.
|
Try to decode text content by trying multiple charset until success. First try charset, else try default_charset finally try popular charsets in order : ascii, utf-8, utf-16, windows-1252, cp850 If all fail then use default_charset and replace wrong characters
|
Parse a string into a PyzMessage object model.
|
Read a file and parse its contents into a PyzMessage object model.
|
Parse a bytes string into a PyzMessage object model. (Python >= 3.2)
|
Read a binary file and parse its contents into a PyzMessage object model. (Python >= 3.2)
|
|
email_address_rea regex that match well formed email address (from perlfaq9)
|
invalid_chars_in_filename
|
invalid_windows_name
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 3 19:15:58 2013 | http://epydoc.sourceforge.net |