Categorygithub.com/emersion/go-milter
modulepackage
0.4.1
Repository: https://github.com/emersion/go-milter.git
Documentation: pkg.go.dev

# README

go-milter

GoDoc builds.sr.ht status

A Go library to write mail filters.

License

BSD 2-Clause

# Packages

No description provided by the author

# Functions

NewClientWithOptions creates a new Client object using provided options.
NewDefaultClient creates a new Client object using default options.
NewResponse generates a new CustomResponse suitable for WritePacket.
NewResponseStr generates a new CustomResponse with string payload.

# Constants

SMFIR_ACCEPT.
SMFIR_ADDHEADER.
SMFIR_ADDRCPT.
SMFIR_CHGFROM.
SMFIR_CHGHEADER.
SMFIR_CONTINUE.
SMFIR_DELRCPT.
SMFIR_DISCARD.
SMFIR_INSHEADER.
SMFIR_QUARANTINE.
SMFIR_REJECT.
SMFIR_ACCEPT.
SMFIR_REPLYCODE.
SMFIR_SKIP.
SMFIR_TEMPFAIL.
SMFIC_ABORT.
SMFIC_BODY.
SMFIC_CONNECT.
SMFIC_DATA.
SMFIC_BODYEOB.
SMFIC_EOH.
SMFIC_HEADER.
SMFIC_HELO.
SMFIC_MACRO.
SMFIC_MAIL.
SMFIC_OPTNEG.
SMFIC_QUIT.
SMFIC_QUIT_NC.
SMFIC_RCPT.
SMFIA_INET.
SMFIA_INET6.
SMFIA_UNIX.
SMFIA_UNKNOWN.
No description provided by the author
SMFIF_ADDHDRS.
SMFIF_ADDRCPT.
SMFIF_ADDRCPT_PAR.
SMFIF_CHGBODY.
SMFIF_CHGFROM.
SMFIF_CHGHDRS.
SMFIP_HDR_LEADSPC.
SMFIP_NOBODY.
SMFIP_NR_BODY.
SMFIP_NOCONNECT.
SMFIP_NR_CONN.
SMFIP_NODATA.
SMFIP_NR_DATA.
SMFIP_NOEOH.
SMFIP_NR_EOH.
SMFIP_NR_HDR, SMFIP_NOHREPL.
SMFIP_NOHDRS.
SMFIP_NOHELO.
SMFIP_NR_HELO.
SMFIP_NOMAIL.
SMFIP_NR_MAIL.
SMFIP_NR_RCPT.
SMFIP_NORCPT.
SMFIP_NOUNKNOWN.
SMFIP_NR_UNKN.
SMFIF_QUARANTINE.
SMFIP_RCPT_REJ.
SMFIF_DELRCPT.
SMFIF_SETSYMLIST.
SMFIP_SKIP.
Define standard responses with no data.
Define standard responses with no data.
Define standard responses with no data.
Define standard responses with no data.
Define standard responses with no data.

# Variables

ErrServerClosed is returned by the Server's Serve method after a call to Close.
No description provided by the author

# Structs

No description provided by the author
Client is a wrapper for managing milter connections.
No description provided by the author
No description provided by the author
CustomResponse is a response instance used by callback handlers to indicate how the milter should continue processing of current message.
Message represents a command sent from milter client.
Modifier provides access to Macros, Headers and Body data to callback handlers.
No description provided by the author
NoOpMilter is a dummy Milter implementation that does nothing.
Server is a milter server.

# Interfaces

No description provided by the author
Milter is an interface for milter callback handlers.
Response represents a response structure returned by callback handlers to indicate how the milter server should proceed.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
OptAction sets which actions the milter wants to perform.
OptProtocol masks out unwanted parts of the SMTP transaction.
No description provided by the author
SimpleResponse type to define list of pre-defined responses.