pypi mail-parser 1.2.0
mail-parser v1.2.0

latest releases: 3.15.0, 3.14.0, 3.13.0...
6 years ago

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.

⚠️ Breaking Changes ⚠️

  • Replace exception InvalidMail with ValueError

Don't miss a new mail-parser release

NewReleases is sending notifications on new releases.