BSD Ports

mail/py-mail-parser 3.15.0_1 DragonFly

Wrapper for email standard library

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
mail, python
Package size
38.9 KiB, 215.1 KiB installed

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

SystemPortVersion
DragonFlymail/py-mail-parser3.15.0_1
FreeBSDmail/py-mail-parser4.6.5
NetBSDmail/py-mail-parser4.6.4
MidnightBSDmail/py-mail-parser4.4.0
HardenedBSDmail/py-mail-parser4.6.5
GhostBSDmail/py-mail-parser4.6.5

Install

Binary package:

pkg install py311-mail-parser

From DPorts:

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

Dependencies

Run dependencies 4
Required by 1