Skip to content

orenmazor/postmark_spamassassin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

You'll need a copy of Requests, which is fantastic: http:https://docs.python-requests.org/en/latest/index.html, and a moderately recent version of python (at least above 2.5)

Usage

from spamcheck import spamcheck

create an instance:

spamchecker = spamcheck.SpamCheck()

now have some fun:

spamchecker.GetScore("foo")

spamchecker.GetReport("foo")

Error Handling

  • Requests will throw an HTTPError on all status codes other than OK. these are propagated to you, brave adventurer.
  • The above library will throw a general Exception in any situation where SpamCheck returns an error. The message of the exception will be the error.

About

Wrapper around the postmark SpamAssassin API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages