BSD Ports

mail/py-mail-parser 4.4.0 MidnightBSD

Wrapper for email standard library

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
cfee2a2ade
License
Apache-2.0
Categories
mail, python

Description

mail-parser is not only a wrapper for email Python Standard Library. It give you an easy way to pass from raw mail to Python object that you can use in your code. It's the key module of SpamScope.

mail-parser can parse Outlook email format (.msg) with msgconvert from mail/p5-Email-Outlook-Message.

mail-parser takes as input a raw email and generates a parsed object. The properties of this object are the same name of RFC headers: bcc, cc, date, delivered_to, from_ (not from because is a keyword of Python), message_id, received, reply_to, subject, to.

There are other properties to get: body, body html, body plain, headers, attachments, sender IP address, to domains, timezone.

In the other systems

The newest version among them is 4.6.5, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDmail/py-mail-parser4.4.0 behind since 2026-08-31no data-[email protected]2026-08-09
FreeBSDmail/py-mail-parser4.6.5 newestnone known-[email protected]2026-09-12
NetBSDmail/py-mail-parser4.6.4 behind since 2026-09-12none known-[email protected]2026-09-08
DragonFlymail/py-mail-parser3.15.0_1 behind since 2026-07-28none known-[email protected]-
HardenedBSDmail/py-mail-parser4.6.5 newestno data-[email protected]-
GhostBSDmail/py-mail-parser4.6.5 newestno data-[email protected]-

Compare across BSDs

Version history 1

  1. 4.4.0 cfee2a2ade

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}mail-parser

From mports:

cd /usr/mports/mail/py-mail-parser && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mail-parser>0:mail/py-mail-parser

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
mail_parser-4.4.0.tar.gz2.852896e+0682d2c0fa98a138620feaa87a378af2a2643b2941b2e125d7abfc65dd21094b33
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
cfee2a2ade Lucas Holt mail/py-mail-parser: update to 4.4.0 (#729)
Update `mail/py-mail-parser` from 3.15.0 to 4.4.0 — a major version jump. ## User-visible breaking changes Verified by fetching the 3.15.0 sdist and diffing it against the extracted 4.4.0 tree, not inferred from release notes: - **Console script renamed**: `mailparser` → `mail-parser` (`setup.py:71` old vs `[project.scripts]` new). The plist now installs `bin/mail-parser` plus the concurrent alias `bin/mail-parser-3.12`. - **Module layout moved**: `mailparser/mailparser.py` → `src/mailparser/core.py`. The import package name `mailparser` is preserved, but `from mailparser.mailparser import ...` breaks. **No in-tree consumers** — `grep -rl` over all Makefiles hits only the `mail/Makefile` SUBDIR list, so nothing needs a dependent bump. …