mailtest

package
v0.0.0-...-0bbbf19 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAddress

func ParseAddress(t testing.TB, address string) *mail.Address

ParseAddress parses a single RFC 5322 address, e.g. "Barry Gibbs <bg@example.com>"

func ParseAddressList

func ParseAddressList(t testing.TB, list string) []*mail.Address

ParseAddressList parses the given string as a list of addresses.

func ParseDate

func ParseDate(t testing.TB, date string) time.Time

ParseDate parses an RFC 5322 date string.

func ReadMessage

func ReadMessage(t testing.TB, r io.Reader) (msg *mail.Message)

ReadMessage reads a message from r. The headers are parsed, and the body of the message will be available for reading from msg.Body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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