Module mail2beyond.parsers.plain

Module that contains a parser that parse an email's content body as plaintext. This simply extends the mail2beyond.framework.BaseParser class but retains its default functionality.

Expand source code
"""
Module that contains a parser that parse an email's content body as plaintext. This simply extends the
mail2beyond.framework.BaseParser class but retains its default functionality.
"""

from mail2beyond import framework


class Parser(framework.BaseParser):
    """Creates a parser to parse an email's content body as plaintext."""
    name = "text"

Classes

class Parser (mail: Email, **kwargs)

Creates a parser to parse an email's content body as plaintext.

Initializes the Parser object with required attributes.

Args

mail : Email
The Email object containing the decoded email contents.

Notes

Any extra arguments passed in when this object is created will be stored in the 'config' attribute of the object.

Expand source code
class Parser(framework.BaseParser):
    """Creates a parser to parse an email's content body as plaintext."""
    name = "text"

Ancestors

Class variables

var name

Inherited members