Mail-parser

Latest version: v3.13.0

Safety actively analyzes 630950 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

1.2.0

Highlights
- Added three functions to module `mailparser`:
- `parse_from_file`: parsing mail from a file
- `parse_from_string`: parsing mail from a string
- `parse_from_bytes`: parsing mail from bytes, new function only for Python 3.x

Example:

mail = mailparser.parse_from_file(fp)
mail = mailparser.parse_from_string(s)
mail = mailparser.parse_from_byte(bt)


- Added three new constructors `from_file`, `from_string` and `from_bytes`

Example:

mail = MailParser.from_file(fp)
mail = MailParser.from_string(fp)
mail = MailParser.from_bytes(fp)


- New property `message_as_string` to get the raw email.

:warning: Breaking Changes :warning:
- Replace exception `InvalidMail` with `ValueError`

1.1.7

Added mail and attachments fingerprints for only command line tool.

1.1.0

Added NFC normalization for unicode string as recommended by W3C.

1.0.0

:warning: Python 3 support :warning:

1.0.0rc1

0.4

- Bugfix charset: correct charset for every mail part.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.