Socket
Socket
Sign inDemoInstall

is-autoreply

Package Overview
Dependencies
1
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-autoreply

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


Version published
Weekly downloads
20
decreased by-9.09%
Maintainers
3
Install size
56.1 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 26 Feb 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc