class MIMELexer(RegexLexer):
Lexer for Multipurpose Internet Mail Extensions (MIME) data. This lexer is designed to process nested multipart data.
It assumes that the given data contains both header and body (and is split at an empty line). If no valid header is found, then the entire data will be treated as body.
Additional options accepted:
MIME-max-level
Content-Type
text/plain
)Multipart-Boundary
Content-Type
is multipart
and header is missing. This lexer
would try to parse from header by default. (default: None)Content-Transfer-Encoding
Method | __init__ |
Undocumented |
Method | get_body_tokens |
Undocumented |
Method | get_bodypart_tokens |
Undocumented |
Method | get_content_type_subtokens |
Undocumented |
Method | get_header_tokens |
Undocumented |
Method | store_content_transfer_encoding |
Undocumented |
Method | store_content_type |
Undocumented |
Class Variable | aliases |
Undocumented |
Class Variable | attention_headers |
Undocumented |
Class Variable | mimetypes |
Undocumented |
Class Variable | name |
Undocumented |
Class Variable | tokens |
Undocumented |
Instance Variable | boundary |
Undocumented |
Instance Variable | content_transfer_encoding |
Undocumented |
Instance Variable | content_type |
Undocumented |
Instance Variable | max_nested_level |
Undocumented |
Inherited from RegexLexer
:
Method | get_tokens_unprocessed |
Split text into (tokentype, text) pairs. |
Inherited from Lexer
(via RegexLexer
):
Method | analyse_text |
No summary |
Method | get_tokens |
Return an iterable of (tokentype, value) pairs generated from text . If unfiltered is set to True , the filtering mechanism is bypassed even if filters are defined. |
Class Variable | alias_filenames |
Undocumented |
Class Variable | filenames |
Undocumented |
Method | __repr__ |
Undocumented |
Method | add_filter |
Add a new stream filter to this lexer. |
Class Variable | priority |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | ensurenl |
Undocumented |
Instance Variable | filters |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | stripall |
Undocumented |
Instance Variable | stripnl |
Undocumented |
Instance Variable | tabsize |
Undocumented |