0.0.17 • Published 4 months ago

emailparser v0.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

nodejs Email Parser

BREAKING CHANGES - see changes section

A simple MIME email parser for nodejs applications.

Takes raw emails and parses out text and attachments.

Usage

const emailParser = require('emailparser');

let email = ` [ raw email text ] `;

let parsedEmail = emailParser.parseEmail(email);
console.log(parsedEmail);

/*
{
    "attachments": [],
    "content": [
        { ... }
    ],
    "headers": {
        "date": 0,
        "from": { "parsed": "test1@example.com", "raw": "Test1 <test1@example.com>" },
        "to": [{ "parsed": "test2@example.com", "raw": "test2@example.com" }],
        "subject": "email test"
    }
}
*/

Changes

0.0.17 - BREAKING

parseEmail(body) returned Object:

  • headers field changed to include all raw email headers, no parsing
  • previous headers now appear in meta field - has specific parsed headers: to, from, etc
0.0.17

4 months ago

0.0.16

8 months ago

0.0.14

11 months ago

0.0.15

11 months ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago