Code Monkey home page Code Monkey logo

email-reply-parser's Introduction

Email Reply Parser for Python

A port of GitHub's Email Reply Parser library, by the fine folks at Zapier.

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 <[email protected]> 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. The parsed email:

Yes that is fine, I will email you in the morning.

Build Status

Installation

Using pip, use command:

pip install email_reply_parser

Tutorial

How to parse an email message

Step 1: Import email reply parser package

from email_reply_parser import EmailReplyParser

Step 2: Provide email message as type String

EmailReplyParser.read(email_message)

How to only retrieve the reply message

Step 1: Import email reply parser package

from email_reply_parser import EmailReplyParser

Step 2: Provide email message as type string using parse_reply class method.

EmailReplyParser.parse_reply(email_message)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.