antispam

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpamAssassin

type SpamAssassin struct {
	// contains filtered or unexported fields
}

func NewSpamAssassin

func NewSpamAssassin(host string, port int) *SpamAssassin

func (*SpamAssassin) Check

func (s *SpamAssassin) Check(message []byte) (*SpamResult, error)

func (*SpamAssassin) Learn

func (s *SpamAssassin) Learn(message []byte, isSpam bool) error

type SpamResult

type SpamResult struct {
	Score     float64
	Threshold float64
	IsSpam    bool
	Rules     []SpamRule
}

type SpamRule

type SpamRule struct {
	Name        string
	Score       float64
	Description string
}

Jump to

Keyboard shortcuts

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