An open API service indexing awesome lists of open source software.

https://github.com/5monkeys/python-email-reply-parser

Python port of https://github.com/github/email_reply_parser
https://github.com/5monkeys/python-email-reply-parser

Last synced: about 1 year ago
JSON representation

Python port of https://github.com/github/email_reply_parser

Awesome Lists containing this project

README

          

# python-email-reply-parser

[![Build Status](https://travis-ci.org/antonagestam/python-email-reply-parser.svg?branch=master)](https://travis-ci.org/antonagestam/python-email-reply-parser)

Python port of https://github.com/github/email_reply_parser, including most of the test suite.

## Installation

PyPI version is coming soon, for now you can install from source:

``` shell
$ pip install -e git+https://github.com/antonagestam/python-email-reply-parser.git#egg=email_reply_parser
```

## Usage

``` python
>>> from email_reply_parser import parse_reply
>>> print(parse_reply("""Hi Anton,
...
... I'm totally fine, how are you?
...
... On Tue, Jul 28, 2015 at 11:38 AM, Anton Agestam
... wrote:
...
... > Hi there Jane,
... > How are you today?
... > —
... > Anton Agestam
...
... """))
Hi Anton,

I'm totally fine, how are you?

```