rudilib

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Functions = rudi.Functions{
	"domain":   rudi.NewFunctionBuilder(domainFunc).WithDescription("returns the domain portion of the address' email").Build(),
	"user":     rudi.NewFunctionBuilder(userFunc).WithDescription("returns the user portion of the address' email").Build(),
	"matches?": rudi.NewFunctionBuilder(matchesFunc).WithDescription("returns true if the first value matches any of the given expressions").Build(),
	"header":   rudi.NewFunctionBuilder(docHeaderFunc, headerFunc).WithDescription("returns the first value for the given header or an empty string if the header is not set").Build(),
}

Functions

func ProcessMessage

func ProcessMessage(ctx context.Context, scriptFile string, msg *email.Message, extraVars rudi.Variables, extraFuncs rudi.Functions) (result any, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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