From owner-svn-ports-head@freebsd.org Mon Feb 4 00:01:12 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA9EF14B80FE; Mon, 4 Feb 2019 00:01:12 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E8FA8C477; Mon, 4 Feb 2019 00:01:12 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 461CB25F83; Mon, 4 Feb 2019 00:01:12 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1401CBd008121; Mon, 4 Feb 2019 00:01:12 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1401BQM008115; Mon, 4 Feb 2019 00:01:11 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201902040001.x1401BQM008115@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Mon, 4 Feb 2019 00:01:11 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/mail: . py-mail-parser X-SVN-Commit-Revision: 492091 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 5E8FA8C477 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.983,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 00:01:13 -0000 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 +# $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 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