Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/web-ridge/email-reply-parser
- Owner: web-ridge
- License: other
- Created: 2021-05-21T13:26:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T14:47:45.000Z (11 months ago)
- Last Synced: 2024-06-20T16:59:38.885Z (5 months ago)
- Language: Go
- Size: 54.7 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Email Reply Parser
Email Reply Parser is a Golang library to parse plain-text email replies and extract contentThis 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.comThe 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 emailsPlease add more tests for your language and use-cases so we can make this library even better!