Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sanbornm/mp

Simple Email Parser
https://github.com/sanbornm/mp

Last synced: about 2 months ago
JSON representation

Simple Email Parser

Awesome Lists containing this project

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"
}
]
}
```