Skip to content

mail-parser v3.0.0

Compare
Choose a tag to compare
@fedelemantuano fedelemantuano released this 03 Dec 13:12
· 209 commits to develop since this release

Highlights

  • There are 2 docker images, for master and for develop
  • It's possible more headers with the same name of RFC (in from case use from_)
  • With mail property will be returned all mail headers, attachments and body, only if they aren't None
  • Every property has object, JSON and raw part. So you can get mail as object with .mail, as JSON with .mail_json, and as raw with .mail_raw.
  • Added logging on stdout for command line.

⚠️ Breaking Changes ⚠️

This new release is not compatible with the previous. This version is all object oriented, the simple header is tokenized in every its parts. Example:

Reply-To: "VICTORIA Souvenirs" <smgesi4@gmail.com>

now becomes:

"reply_to": [
    [
      "VICTORIA Souvenirs",
      "smgesi4@gmail.com"
    ]
  ],
  • The method parse_from_* are removed.
  • The anomalies detection are removed.