message

package
v0.0.0-...-88fb584 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FromKey       = "From"
	ToKey         = "To"
	CcKey         = "Cc"
	ReplyToKey    = "Reply-To"
	SubjectKey    = "Subject"
	SenderKey     = "Sender"
	MessageIdKey  = "Message-Id"
	ReturnPathKey = "Return-Path"
)

The canonical format of the MIME header keys

View Source
const RFC5322LineDelimiter = "\r\n"

Line delimiter according to RFC5322 See https://www.rfc-editor.org/rfc/rfc5322#section-2.1

Variables

This section is empty.

Functions

func BuildMail

func BuildMail(message *BufferedMessage) ([]byte, error)

func ProcessMessageHeader

func ProcessMessageHeader(config *config.ParsedConfig, header mail.Header, newSender *mail.Address) error

func SetDebugHeaders

func SetDebugHeaders(header mail.Header, messageMetadata events.SimpleEmailMessage)

Types

type BufferedMessage

type BufferedMessage struct {
	Header mail.Header
	Body   []byte
}

A parsed mail message with fully buffered message body

Jump to

Keyboard shortcuts

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