package
1.41.1
Repository: https://github.com/programmfabrik/apitest.git
Documentation: pkg.go.dev

# Functions

NewReceivedContent parses a message or part headers and body into a ReceivedContent struct.
NewReceivedMessage parses a raw message as received via SMTP into a ReceivedMessage struct.
NewReceivedMessageFromParsed creates a ReceivedMessage from an already parsed email.
NewReceivedPart parses a MIME multipart part into a ReceivedPart struct.
NewServer creates a new testing SMTP server.
SearchByHeader returns the list of all given ContentHavers that, for each of the given regular expressions, has at least one header matching it (different regexes can be matched by different headers or the same header).

# Constants

# Structs

ReceivedContent contains the contents of an email message or multipart part.
ReceivedMessage contains a single email message as received via SMTP.
ReceivedPart contains a single part of a multipart message as received via SMTP.
Server contains a basic SMTP server for testing purposes.

# Interfaces

ContentHaver makes it easier to write algorithms over types that have an email message and/or multipart content.