spam

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Functions = rudi.Functions{
	"spam":       rudi.NewFunctionBuilder(spamFuncWithRule, spamFunc).WithDescription("marks an e-mail as spam").Build(),
	"ham":        rudi.NewFunctionBuilder(hamFuncWithRule, hamFunc).WithDescription("marks an e-mail as ham").Build(),
	"maybe-spam": rudi.NewFunctionBuilder(maybeSpamFuncWithRule, maybeSpamFunc).WithDescription("marks an e-mail as maybe spam").Build(),
}

Functions

This section is empty.

Types

type Result

type Result struct {
	Status Status `json:"status"`
	Rule   string `json:"rule"`
}

func Check

func Check(ctx context.Context, scriptFile string, msg *email.Message) (*Result, error)

type Status

type Status string
const (
	Spam      Status = "spam"
	MaybeSpam Status = "maybe-spam"
	Ham       Status = "ham"
)

Jump to

Keyboard shortcuts

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