Neolithic Programming Machine

    is-autoreply

    1.1.3 • Public • Published

    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

    Install

    npm i is-autoreply

    DownloadsWeekly Downloads

    19

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    10.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • araujoigor
    • javascript
    • walling
    • ninjatiger