🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

is-autoreply

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-autoreply

Detect if email is an autoreply according to the email headers.

1.1.3
latest
Source
npm
Version published
Weekly downloads
52
-30.67%
Maintainers
3
Weekly downloads
 
Created
Source

is-autoreply

is-autoreply

Returns true if email is an autoreply according to the email headers.

Please open an issue if an email isn't properly detected as autoreply :)

Installation

npm install --save is-autoreply

Programmatic usage

Headers can be String, Buffer or Object (key/value). In case of String or Buffer, the headers are automatically parsed.

const isAutoreply  = require('is-autoreply');
const emailHeaders = { 'X-Auto-Response-Suppress': 'OOF' };

if (isAutoreply(emailHeaders)) {
  console.log('The email is an autoreply');
}

License

MIT

Keywords

email

FAQs

Package last updated on 26 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts