Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanbornm/mp
Simple Email Parser
https://github.com/sanbornm/mp
Last synced: 11 days ago
JSON representation
Simple Email Parser
- Host: GitHub
- URL: https://github.com/sanbornm/mp
- Owner: sanbornm
- License: mit
- Created: 2014-06-15T21:14:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-11T19:40:58.000Z (over 8 years ago)
- Last Synced: 2024-10-14T14:05:20.164Z (25 days ago)
- Language: Go
- Size: 1.08 MB
- Stars: 47
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - mp - Simple cli email parser. It currently takes stdin and outputs JSON. (JSON / Search and Analytic Databases)
- awesome-cobol - mp - A simple cli email parser. It currently takes stdin and outputs JSON. (Utilities / Middlewares)
- awesome-go - mp - Simple Email Parser - ★ 29 (Utilities)
- awesome-go-extra - mp - 06-15T21:14:39Z|2016-05-11T19:40:58Z| (JSON / Advanced Console UIs)
README
mp - mail parser [![Build Status](https://travis-ci.org/sanbornm/mp.svg?branch=master)](https://travis-ci.org/sanbornm/mp)
==mp is a simple cli email parser. It currently takes stdin and outputs JSON.
Example:
```
cat fixtures/test.eml | mp
``````
{
"Text": "Hello world!",
"Html": "\u003cb\u003eHello world!\u003c/b\u003e",
"Headers": {
"Content-Type": "multipart/mixed; boundary=\"----mailcomposer-?=_1-1402581589619\"",
"From": "\"Me\" \[email protected]\u003e",
"Mime-Version": "1.0",
"To": "\"First Receiver\" \[email protected]\u003e, [email protected]",
"X-Mailer": "Nodemailer 1.0"
},
"From": [
{
"Name": "Me",
"Address": "[email protected]"
}
],
"To": [
{
"Name": "First Receiver",
"Address": "[email protected]"
},
{
"Name": "",
"Address": "[email protected]"
}
],
"Cc": null,
"Priority": "normal",
"Attachments": [
{
"ContentType": "text/plain",
"Filename": "dummyFile.txt",
"Disposition": "attachment"
}
]
}
```