# mehljs

> E-Mail processing library. Contains a basic e-mail parser and parsers/converters for several content types includding MIME multipart mails, images, ...

Latest version **0.2.0** (published 2015-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install mehljs
pnpm add mehljs
yarn add mehljs
bun add mehljs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2015-12-20 |
| First published | 2015-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Andreas Hubert |
| Maintainers | nanobot248 |

## Links

- npm: https://www.npmjs.com/package/mehljs
- Repository: https://github.com/nanobot248/mehljs
- Issues: https://github.com/nanobot248/mehljs/issues
- npm.io page: https://npm.io/package/mehljs

## Dependencies (1)

- [encoding](https://npm.io/package/encoding.md) ^0.1.11

## Recent versions

- 0.2.0 (latest) — 2015-12-20
- 0.1.1 — 2015-08-29
- 0.1.0 — 2015-08-25
- 0.0.2 — 2015-08-25
- 0.0.1 — 2015-08-24

## README

# mehl.js Readme

mehl.js is a mail parsing library with support for several standard MIME types.
It automatically decode multipart messages, images, ..

## Usage

To parse an e-mail, simply do the following:

```javascript
var mehljs = require("mehljs");
var fs = require("fs");

var mailText = fs.readFileSync("/path/to/mail.eml");
var mail = new mehljs.Mail(mailText);
```

## What's still missing?

 * Support for additional MIME types and better support for already included
   types, especially multipart/digest, S/MIME and PGP. Decryption of messages
   and message parts should be available.
 * Support for simple jquery-like search-patterns to find message parts. E.g.
   something like
   `mail.$("multipart/* .Content-Disposition[filename='asdf.pdf']")` to select
   all MIME parts with the filename "asdf.pdf".

## What about the name?

The name mailjs was already taken. The word "Mehl" is german for flour, but is
pronounced simillary (not exaclty the same) to mail.

---
_Source: https://npm.io/package/mehljs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
