Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/web-ridge/email-reply-parser

Parses a plain text email and returns it without signatures and other things
https://github.com/web-ridge/email-reply-parser

Last synced: 3 days ago
JSON representation

Parses a plain text email and returns it without signatures and other things

Awesome Lists containing this project

README

        

# Email Reply Parser
Email Reply Parser is a Golang library to parse plain-text email replies and extract content

This library supports most email replies, signatures and locales and quoted replies.

## Example

```golang
import (
erp "github.com/web-ridge/email-reply-parser"
)
content := erp.Parse(email.TextBody)
```

PS: If you want to parse a RFC5322 mail to plain text use e.g. [DusanKasan/parsemail](https://github.com/DusanKasan/parsemail) and use the TextBody from that library in this library.

## Features

- Supports stripping quoted replies in top/bottom
- Strip email replies like On DATE, NAME wrote:
- Removes signatures like Sent from my iPhone
- Detects signatures like
```
Met vriendelijke groeten,
Richard Lindhout
```

```
Karen The Green
Graphic Designer
Office
Tel: +44423423423423
Fax: +44234234234234
[email protected]
Street 2, City, Zeeland, 4694EG, NL
www.thing.com

The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

```

```
-Abhishek Kona

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
```

We try to support the following languages
- Dutch (tested)
- English (tested)
- French
- Polish
- German
- Portuguese
- Norwegian
- Swedish
- Danish
- Vietnamese

## TODO
- Forwarded emails

Please add more tests for your language and use-cases so we can make this library even better!