Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleResult ¶
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
Click to show internal directories.
Click to hide internal directories.