spamassassin

package
v1.0.2 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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleResult

type RuleResult struct {
	Rule        string
	Score       float64
	Description string
}

RuleResult represents a single SpamAssassin rule result

type ScanResult

type ScanResult struct {
	IsSpam    bool
	Score     float64
	Threshold float64
	Rules     []RuleResult
}

ScanResult represents the result of a SpamAssassin scan

type SpamAssassin

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

SpamAssassin implements SpamAssassin scanning via spamd

func NewSpamAssassin

func NewSpamAssassin(host string, port int) *SpamAssassin

NewSpamAssassin creates a new SpamAssassin scanner

func (*SpamAssassin) Scan

func (s *SpamAssassin) Scan(message []byte) (*ScanResult, error)

Scan sends a message to SpamAssassin for analysis

type SpamAssassinServiceInterface

type SpamAssassinServiceInterface interface {
	Scan(message []byte) (*ScanResult, error)
}

SpamAssassinServiceInterface defines the interface for spam scanning

Jump to

Keyboard shortcuts

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