Date: Mon, 4 Feb 2019 00:01:11 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492091 - in head/mail: . py-mail-parser Message-ID: <201902040001.x1401BQM008115@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Mon Feb 4 00:01:11 2019 New Revision: 492091 URL: https://svnweb.freebsd.org/changeset/ports/492091 Log: Add py-mail-parser 3.9.1 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. WWW: https://github.com/SpamScope/mail-parser Added: head/mail/py-mail-parser/ head/mail/py-mail-parser/Makefile (contents, props changed) head/mail/py-mail-parser/distinfo (contents, props changed) head/mail/py-mail-parser/pkg-descr (contents, props changed) Modified: head/mail/Makefile Modified: head/mail/Makefile ============================================================================== --- head/mail/Makefile Mon Feb 4 00:00:02 2019 (r492090) +++ head/mail/Makefile Mon Feb 4 00:01:11 2019 (r492091) @@ -534,6 +534,7 @@ SUBDIR += py-flufl.bounce SUBDIR += py-fuglu SUBDIR += py-libgmail + SUBDIR += py-mail-parser SUBDIR += py-managesieve3 SUBDIR += py-milter SUBDIR += py-notmuch Added: head/mail/py-mail-parser/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/py-mail-parser/Makefile Mon Feb 4 00:01:11 2019 (r492091) @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= mail-parser +PORTVERSION= 3.9.1 +CATEGORIES= mail python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Wrapper for email standard library + +LICENSE= APACHE20 + +RUN_DEPENDS= msgconvert:mail/p5-Email-Outlook-Message \ + ${PY_IPADDRESS} \ + ${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +.include <bsd.port.mk> Added: head/mail/py-mail-parser/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/py-mail-parser/distinfo Mon Feb 4 00:01:11 2019 (r492091) @@ -0,0 +1,3 @@ +TIMESTAMP = 1549187246 +SHA256 (mail-parser-3.9.1.tar.gz) = b6ef2621944f4fdaacfdf5c4776336cfc527b3560ca9f1a8015629a6b16a653c +SIZE (mail-parser-3.9.1.tar.gz) = 15894 Added: head/mail/py-mail-parser/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/py-mail-parser/pkg-descr Mon Feb 4 00:01:11 2019 (r492091) @@ -0,0 +1,16 @@ +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. + +WWW: https://github.com/SpamScope/mail-parser
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902040001.x1401BQM008115>