Socket
Socket
Sign inDemoInstall

postmark-spamcheck

Package Overview
Dependencies
57
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    postmark-spamcheck

Node library for the Postmark spam API


Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

postmark-spamcheck Build Status

Node library for the Postmark spam API. http://spamcheck.postmarkapp.com/doc

Install

$ npm install postmark-spamcheck --save

Usage

var fs                = require('fs');
var postmarkSpamcheck = require('postmark-spamcheck');

fs.readFile(filepath, 'utf-8', function (err, content) {
	if (err) {
		throw err;
	}
	postmarkSpamcheck.check({
		options: 'long',
		email: content
	}, function(info) {
		console.log(info.score);
		console.log(info.scoreDescription);
		console.log(info.report);
	});
});

API

postmarkSpamcheck.check(options, callback)

options
email

Required
Type: string

The raw dump of the email to be filtered, including all headers.

options

Type: string Default: short

Must either be "long" for a full report of processing rules, or "short" for a score request.

callback

Provide a callback to use the information gathered, this will be run once the spam check has been successfully completed.

CLI

Install

$ npm install postmark-spamcheck --global

Usage

postmark-spamcheck --file <file> --type long

Options:
-h, --help          Output help information
-v, --version       Output version information
-f, --file [file]   Specify the location of the configuration file
-t, --type [type]   Specify the type of report (short | long)

Examples:
postmark-spamcheck --file ./email.txt --type long

License

MIT © James Bell

Keywords

FAQs

Last updated on 06 Apr 2015

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