sieve

package module
v0.0.0-...-72d6b00 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 4 Imported by: 1

README

go-sieve

Sieve email filtering language (RFC 5228) implementation in Go.

Supported extensions

Example

See ./cmd/sieve-run.

Known issues

  • Some invalid scripts are accepted as valid (see tests/compile_test.go)
  • Comments in addresses are not ignored when testing equality, etc.
  • Source routes in addresses are not ignored when testing equality, etc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Envelope

type Envelope = interp.Envelope

type Message

type Message = interp.Message

type Options

type Options struct {
	Lexer  lexer.Options
	Parser parser.Options
	Interp interp.Options
}

func DefaultOptions

func DefaultOptions() Options

type PolicyReader

type PolicyReader = interp.PolicyReader

type RuntimeData

type RuntimeData = interp.RuntimeData

type Script

type Script = interp.Script

func Load

func Load(r io.Reader, opts Options) (*Script, error)

Directories

Path Synopsis
cmd
sieve-run command

Jump to

Keyboard shortcuts

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