pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add py-email-reply-parser



Module Name:	pkgsrc-wip
Committed By:	Kethzer Docteur <kethzer.dr%gmail.com@localhost>
Pushed By:	kethzer.dr
Date:		Fri May 4 13:42:24 2018 -0400
Changeset:	7e640ad96a5fbb68f65d544ea5688aaa4bbe5132

Modified Files:
	Makefile
Added Files:
	py-email-reply-parser/DESCR
	py-email-reply-parser/Makefile
	py-email-reply-parser/PLIST
	py-email-reply-parser/distinfo
	py-email-reply-parser/files/LICENSE
	py-email-reply-parser/files/README.md
	py-email-reply-parser/patches/patch-LICENSE
	py-email-reply-parser/patches/patch-README.md

Log Message:
Add py-email-reply-parser

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7e640ad96a5fbb68f65d544ea5688aaa4bbe5132

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                      |  1 +
 py-email-reply-parser/DESCR                   |  2 +
 py-email-reply-parser/Makefile                | 16 ++++++
 py-email-reply-parser/PLIST                   | 14 ++++++
 py-email-reply-parser/distinfo                |  8 +++
 py-email-reply-parser/files/LICENSE           |  7 +++
 py-email-reply-parser/files/README.md         | 65 +++++++++++++++++++++++++
 py-email-reply-parser/patches/patch-LICENSE   | 13 +++++
 py-email-reply-parser/patches/patch-README.md | 70 +++++++++++++++++++++++++++
 9 files changed, 196 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ffd51faf6a..cef2b889be 100644
--- a/Makefile
+++ b/Makefile
@@ -3131,6 +3131,7 @@ SUBDIR+=	py-ecos
 SUBDIR+=	py-ecspy
 SUBDIR+=	py-eemeter
 SUBDIR+=	py-eigency
+SUBDIR+=	py-email-reply-parser
 SUBDIR+=	py-embedc
 SUBDIR+=	py-emcee
 SUBDIR+=	py-emmsa
diff --git a/py-email-reply-parser/DESCR b/py-email-reply-parser/DESCR
new file mode 100644
index 0000000000..8a3702d09f
--- /dev/null
+++ b/py-email-reply-parser/DESCR
@@ -0,0 +1,2 @@
+Email reply parser library, making it easy to extract a
+ signature, reply, or quote block from a text email
diff --git a/py-email-reply-parser/Makefile b/py-email-reply-parser/Makefile
new file mode 100644
index 0000000000..17eef0c34f
--- /dev/null
+++ b/py-email-reply-parser/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+DISTNAME=	email_reply_parser-0.1.1
+PKGNAME=        ${PYPKGPREFIX}-${DISTNAME:S/_/-/:S/_/-/}
+CATEGORIES=	mail python
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/email_reply_parser/}
+
+MAINTAINER=	kethzer.dr%gmail.com@localhost
+HOMEPAGE=	https://github.com/zapier/email-reply-parser
+COMMENT=	Email reply parser library
+LICENSE=	mit
+
+.include "../../lang/python/egg.mk"
+USE_LANGUAGES=	# none
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-email-reply-parser/PLIST b/py-email-reply-parser/PLIST
new file mode 100644
index 0000000000..d7c6b633da
--- /dev/null
+++ b/py-email-reply-parser/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/tests/__init__.py
+${PYSITELIB}/tests/__init__.pyc
+${PYSITELIB}/tests/__init__.pyo
+${PYSITELIB}/tests/context.py
+${PYSITELIB}/tests/context.pyc
+${PYSITELIB}/tests/context.pyo
+${PYSITELIB}/tests/test_email_message.py
+${PYSITELIB}/tests/test_email_message.pyc
+${PYSITELIB}/tests/test_email_message.pyo
diff --git a/py-email-reply-parser/distinfo b/py-email-reply-parser/distinfo
new file mode 100644
index 0000000000..4277bc43ed
--- /dev/null
+++ b/py-email-reply-parser/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (email_reply_parser-0.1.1.tar.gz) = 3157a0a5ea984582a979138665d61e9598bc9a6c
+RMD160 (email_reply_parser-0.1.1.tar.gz) = 917527bbe8971e66a0f4a673c5978f0a7e89d311
+SHA512 (email_reply_parser-0.1.1.tar.gz) = dee09a12ad4a4b0e05e0409737a04d2c83f011e3cb7868c2f5913b5b8ad18a6c6488aa1eddc8e82bb09ad449f1816c106fd857bc848eb4b8dbccf7c0853b2dae
+Size (email_reply_parser-0.1.1.tar.gz) = 2765 bytes
+SHA1 (patch-LICENSE) = 8bbab457c0011dee7a88aa80b45d80a1062aefe4
+SHA1 (patch-README.md) = e4047be5769e7e09696b1d1f5b7544d8fcf72d44
diff --git a/py-email-reply-parser/files/LICENSE b/py-email-reply-parser/files/LICENSE
new file mode 100644
index 0000000000..38db3cbd1f
--- /dev/null
+++ b/py-email-reply-parser/files/LICENSE
@@ -0,0 +1,7 @@
+Copyright (c) 2012 Zapier
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/py-email-reply-parser/files/README.md b/py-email-reply-parser/files/README.md
new file mode 100644
index 0000000000..8011821e3c
--- /dev/null
+++ b/py-email-reply-parser/files/README.md
@@ -0,0 +1,65 @@
+# Email Reply Parser for Python
+A port of GitHub's Email Reply Parser library, by the fine folks at [Zapier](https://zapier.com/).
+
+## Summary
+
+Email Reply Parser makes it easy to grab *only* the last reply to an on-going email thread.
+
+Say you'd like to parse out a user's response to your transaction email messages:
+
+```
+Yes that is fine, I will email you in the morning.
+
+On Fri, Nov 16, 2012 at 1:48 PM, Zapier <contact%zapier.com@localhost> wrote:
+
+> Our support team just commented on your open Ticket:
+> "Hi Royce, can we chat in the morning about your question?"
+```
+
+Email clients handle reply formatting differently, making parsing a pain. [We include tests for many cases](https://github.com/zapier/email-reply-parser/tree/master/test/emails). The parsed email:
+
+```
+Yes that is fine, I will email you in the morning.
+```
+
+[![Build Status](https://secure.travis-ci.org/zapier/email-reply-parser.png?branch=master)](https://travis-ci.org/zapier/email-reply-parser)
+
+## Installation
+
+Using pip, use command:
+
+```
+pip install email_reply_parser
+```
+
+## Tutorial
+
+### How to parse an email message
+
+Step 1: Import email reply parser package
+
+```python
+from email_reply_parser import EmailReplyParser
+```
+
+Step 2: Provide email message as type String
+
+```python
+EmailReplyParser.read(email_message)
+```
+
+### How to only retrieve the reply message
+
+Step 1: Import email reply parser package
+
+```python
+from email_reply_parser import EmailReplyParser
+```
+
+Step 2: Provide email message as type string using parse_reply class method.
+
+```python
+EmailReplyParser.parse_reply(email_message)
+```
+
+
diff --git a/py-email-reply-parser/patches/patch-LICENSE b/py-email-reply-parser/patches/patch-LICENSE
new file mode 100644
index 0000000000..bbc77d257e
--- /dev/null
+++ b/py-email-reply-parser/patches/patch-LICENSE
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- LICENSE.orig	2018-05-02 17:13:10.602804000 +0000
++++ LICENSE
+@@ -0,0 +1,7 @@
++Copyright (c) 2012 Zapier
++
++Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
++
++The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
++
++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+\ No newline at end of file
diff --git a/py-email-reply-parser/patches/patch-README.md b/py-email-reply-parser/patches/patch-README.md
new file mode 100644
index 0000000000..3d0af6d52d
--- /dev/null
+++ b/py-email-reply-parser/patches/patch-README.md
@@ -0,0 +1,70 @@
+$NetBSD$
+
+--- README.md.orig	2018-05-02 17:13:24.139612000 +0000
++++ README.md
+@@ -0,0 +1,65 @@
++# Email Reply Parser for Python
++A port of GitHub's Email Reply Parser library, by the fine folks at [Zapier](https://zapier.com/).
++
++## Summary
++
++Email Reply Parser makes it easy to grab *only* the last reply to an on-going email thread.
++
++Say you'd like to parse out a user's response to your transaction email messages:
++
++```
++Yes that is fine, I will email you in the morning.
++
++On Fri, Nov 16, 2012 at 1:48 PM, Zapier <contact%zapier.com@localhost> wrote:
++
++> Our support team just commented on your open Ticket:
++> "Hi Royce, can we chat in the morning about your question?"
++```
++
++Email clients handle reply formatting differently, making parsing a pain. [We include tests for many cases](https://github.com/zapier/email-reply-parser/tree/master/test/emails). The parsed email:
++
++```
++Yes that is fine, I will email you in the morning.
++```
++
++[![Build Status](https://secure.travis-ci.org/zapier/email-reply-parser.png?branch=master)](https://travis-ci.org/zapier/email-reply-parser)
++
++## Installation
++
++Using pip, use command:
++
++```
++pip install email_reply_parser
++```
++
++## Tutorial
++
++### How to parse an email message
++
++Step 1: Import email reply parser package
++
++```python
++from email_reply_parser import EmailReplyParser
++```
++
++Step 2: Provide email message as type String
++
++```python
++EmailReplyParser.read(email_message)
++```
++
++### How to only retrieve the reply message
++
++Step 1: Import email reply parser package
++
++```python
++from email_reply_parser import EmailReplyParser
++```
++
++Step 2: Provide email message as type string using parse_reply class method.
++
++```python
++EmailReplyParser.parse_reply(email_message)
++```
++
++


Home | Main Index | Thread Index | Old Index