# node-red-contrib-eml

> Node-RED node for parsing EML files

Latest version **1.0.2** (published 2021-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-red-contrib-eml
pnpm add node-red-contrib-eml
yarn add node-red-contrib-eml
bun add node-red-contrib-eml
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-12-10 |
| First published | 2021-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | martip |
| Keywords | node-red, eml, email |

## Links

- npm: https://www.npmjs.com/package/node-red-contrib-eml
- Repository: https://github.com/martip/node-red-contrib-eml
- Homepage: https://github.com/martip/node-red-contrib-eml#readme
- Issues: https://github.com/martip/node-red-contrib-eml/issues
- npm.io page: https://npm.io/package/node-red-contrib-eml

## Dependencies (1)

- [mailparser](https://npm.io/package/mailparser.md) ^3.4.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-12-10
- 1.0.1 — 2021-10-29
- 1.0.0 — 2021-10-29

## README

# node-red-contrib-eml

A [Node-RED](http://nodered.org/) that parses an EML (email) file.
It basically works as the official [node-red-node-email](https://flows.nodered.org/node/node-red-node-email) input node, accepting a buffer of an EML file as input, instead of fetching it from a mail server.

This node uses the [MailParser](https://nodemailer.com/extras/mailparser/) library, part of the NodeMailer project.

## Install

Either use the `Node-RED Menu - Manage Palette - Install`, or run the following command in your Node-RED user directory - typically `~/.node-red`

    npm install node-red-contrib-eml

## Usage

You pass the content of an EML file, as a buffer, in the `msg.payload`.

After processing, the subject of the email message is loaded into `msg.topic` and `msg.payload` is the plain text body. If there is text/html then that is returned in `msg.html`. `msg.from` and `msg.date` are also set if you need them.

Additionally, `msg.header` contains the complete header object including `to`, `cc` and other potentially useful properties.

Attachments contained in the email message are returned in the `msg.attachments` array.

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