hMollom-0.2: Library to interact with the Mollom anti-spam service

Network.Mollom

Description

Interface to the Mollom API

Synopsis

Documentation

getServerList :: MollomMonad [String]Source

request a list of Mollom servers that can handle a site's calls.

checkContentSource

Arguments

:: [(String, String)]

data

-> MollomMonad [(String, MollomValue)]

contains spam decision and session ID

asks Mollom whether the specified message is legitimate.

sendFeedbackSource

Arguments

:: String

feedback: spam, profanity, low-quality or unwanted

-> MollomMonad Bool

always returns true

tells Mollom that the specified message was spam or otherwise abusive.

getImageCaptchaSource

Arguments

:: Maybe String

author IP address

-> MollomMonad [(String, MollomValue)]

session ID and CAPTCHA url

requests Mollom to generate a image CAPTCHA.

getAudioCaptchaSource

Arguments

:: Maybe String

author IP address

-> MollomMonad [(String, MollomValue)] 

requests Mollom to generate an audio CAPTCHA

checkCaptchaSource

Arguments

:: String

solution to the CAPTCHA

-> MollomMonad Bool 

requests Mollom to verify the result of a CAPTCHA.

getStatisticsSource

Arguments

:: String

type of statistics demanded total_days  Number of days Mollom has been used. total_accepted  Total accepted posts. total_rejected  Total rejected spam posts. yesterday_accepted  Number of posts accepted yesterday. yesterday_rejected  Number of spam posts blocked yesterday. today_accepted  Number of posts accepted today. today_rejected  Number of spam posts rejected today.

-> MollomMonad Int

Value of requested statistic

retrieves usage statistics from Mollom.

verifyKeySource

Arguments

:: MollomMonad Bool

Always returns True

return a status value.

detectLanguageSource

Arguments

:: String

text to analyse

-> MollomMonad [[(String, MollomValue)]]

list of (language, confidence) tuples

analyze text and return its most likely language code.

addBlacklistTextSource

Arguments

:: String

text to blacklist

-> String

match used to search for the text, either exact or contains

-> String

reason: spam, profanity, low-quality, or unwanted

-> MollomMonad Bool

always returns True

add text to your site's custom text blacklist.

removeBlacklistTextSource

Arguments

:: String

text to blacklist

-> MollomMonad Bool

always returns True

remove text from your site's custom text blacklist.

listBlacklistTextSource

Arguments

:: MollomMonad [[(String, MollomValue)]]

List of the current blacklisted URLs for the website corresponding to the public and private keypair

return the contents of your site's custom text blacklist.

addBlacklistURLSource

Arguments

:: String

URL to be added to custom URL blacklist for the website identified by the public and private keypair

-> MollomMonad Bool

always returns True

add a URL to your site's custom URL blacklist.

removeBlacklistURLSource

Arguments

:: String

URL to be removed from the custom URL blacklist for the website identified by the public and private keypair

-> MollomMonad Bool

always returns True

remove a URL from your site's custom URL blacklist.

listBlacklistURLSource

Arguments

:: MollomMonad [[(String, MollomValue)]]

List of the current blacklisted URLs for the website corresponding to the public and private keypair

return the contents of your site's custom URL blacklist.