Releases: SpamScope/mail-parser
Releases · SpamScope/mail-parser
mail-parser v3.8.0
Highlights
- Storing attachments on disk from command line tool.
mail-parser v3.6.0
Highlights
- Added
timezone
of mail date.
mail-parser v3.4.0
Highlights
- Added logging on standard output for command line.
- Resolved many bugs
- Code cleaning
mail-parser v3.3.0
Highlights
- Added custom exceptions:
MailParserError: Base MailParser Exception
|
├── MailParserOutlookError: Raised with Outlook integration errors
|
├── MailParserEnvironmentError: Raised when the environment is not correct
|
├── MailParserOSError: Raised when there is an OS error
mail-parser v3.2.0
Highlights
received
headers are now parsed as single hops. All hops are date in UTC, and delay between actual and before hop.
"received": [
{
"from": "host86-187-174-57.range86-187.btcentralplus.com 86.187.174.57 :45321 helo=User",
"delay": 0,
"date_utc": "2016-08-19T14:34:52",
"hop": 1,
"date": "Fri, 19 Aug 2016 20:34:52 +0600",
"with": "esmtpa Exim 4.87 envelope-from <[email protected]> id 1bakrE-000291-LF",
"by": "localhost.localdomain.com"
},
{
"from": "localhost.localdomain.com mail.revesoft.com 208.74.72.248",
"delay": 159287.0,
"date_utc": "2016-08-21T10:49:39",
"hop": 2,
"date": "21 Aug 2016 10:49:39 -0000",
"with": "ESMTP via TCP",
"by": "mx03.futurequest.net 69.5.6.174"
},
{
"date": "21 Aug 2016 10:49:40 -0000",
"delay": 1.0,
"date_utc": "2016-08-21T10:49:40",
"from": "network",
"hop": 3
},
{
"from": "mx03.futurequest.net mx03.futurequest.net 69.5.6.174",
"delay": 0.0,
"date_utc": "2016-08-21T10:49:40",
"hop": 4,
"date": "21 Aug 2016 10:49:40 -0000",
"with": "FQDP via TCP",
"by": "pt02.futurequest.net 69.5.6.173"
},
{
"date": "21 Aug 2016 10:49:40 -0000",
"delay": 0.0,
"date_utc": "2016-08-21T10:49:40",
"from": "network",
"hop": 5
}
],
mail-parser v3.0.0
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 usefrom_
) - With
mail
property will be returned all mail headers, attachments and body, only if they aren'tNone
- 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" <[email protected]>
now becomes:
"reply_to": [
[
"VICTORIA Souvenirs",
"[email protected]"
]
],
- The method
parse_from_*
are removed. - The anomalies detection are removed.
mail-parser v2.1.0
Highlights
- Added parsing from file-like object, like
sys.stdin
. - Added option to command line tool to parse standard input.
mail-parser v2.0.0
Highlights
- Parsing Outlook msg email
- Added received field also in JSON complete output
- Added
flag binary
if the attachment is a binary. Detection binary inquoted-printable
Content-Transfer-Encoding
- Normalize
headers
property (all multiple spaces become one space)
mail-parser v1.2.0
Highlights
- Added three functions to module
mailparser
: parse_from_file
: parsing mail from a fileparse_from_string
: parsing mail from a stringparse_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
andfrom_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
withValueError
mail-parser v1.1.7
Added mail and attachments fingerprints for only command line tool.