rspamd

package
v0.0.0-...-1c7b4bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResponse

type CheckResponse struct {
	Message   string
	Score     float64
	Spam      bool
	Threshold float64
	Took      float64
	MessageId string
}

func Check

func Check(reader io.Reader) (*CheckResponse, error)

//////////////////////////////////////////////////////////////////////////////

func (CheckResponse) FmtScore

func (p CheckResponse) FmtScore(pattern string) string

//////////////////////////////////////////////////////////////////////////////

func (CheckResponse) Report

func (p CheckResponse) Report(uid uint32)

//////////////////////////////////////////////////////////////////////////////

type LearnResponse

type LearnResponse struct {
	Message        string
	Success        bool
	Skiped         bool
	Took           float64
	ErrorCode      int
	ErrorMessageID string
	ErrorMessage   string
}

func Learn

func Learn(fnString string, reader io.Reader) (*LearnResponse, error)

//////////////////////////////////////////////////////////////////////////////

func LearnHam

func LearnHam(reader io.Reader) (*LearnResponse, error)

//////////////////////////////////////////////////////////////////////////////

func LearnSpam

func LearnSpam(reader io.Reader) (*LearnResponse, error)

//////////////////////////////////////////////////////////////////////////////

func (LearnResponse) Report

func (p LearnResponse) Report(uid uint32)

//////////////////////////////////////////////////////////////////////////////

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL