# hapi-mailin

> Artisanal inbound emails for hapi

Latest version **0.2.3** (published 2014-12-25) · MIT License license · 0 weekly downloads

## Install

```sh
npm install hapi-mailin
pnpm add hapi-mailin
yarn add hapi-mailin
bun add hapi-mailin
```

## 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.3 |
| Published | 2014-12-25 |
| First published | 2014-12-23 |
| Weekly downloads | 0 |
| License | MIT License |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | defel |
| Maintainers | dfl |
| Keywords | hapi, plugin, inbound, email, mail |

## Links

- npm: https://www.npmjs.com/package/hapi-mailin
- Repository: https://github.com/defel/hapi-mailin
- Issues: https://github.com/defel/hapi-mailin/issues
- npm.io page: https://npm.io/package/hapi-mailin

## Dependencies (1)

- [mailin](https://npm.io/package/mailin.md) ^1.0.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

- 0.2.3 (latest) — 2014-12-25
- 0.2.2 — 2014-12-25
- 0.2.1 — 2014-12-23
- 0.2.0 — 2014-12-23

## README

hapi-mailin
===========

Artisanal inbound emails for hapi

Install
=======

```bash
npm install --save hapi-mailin
```


Usage
=====

```js
var mailinOpts = {
  port: 25,
  webhook: 'http://localhost:8100/api/emails',
};

server.pack.register({
  plugin: require('hapi-mailin'),
  options: mailinOpts
}, function(err) {
  server.plugins['hapi-mailin'].mailin.on("authorizeUser", function(connection, username, password, done) {
    if (username == "demo" && password == "demo") {
      done(null, true);
    } else {
      done(new Error("Unauthorized!"), false)
    }
  });

  server.plugins['hapi-mailin'].mailin.on("message", function(connection, data, content) {
    // do something with data
  }
});
```

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