# Functions
CharsetDecoderToCharsetReader transforms a CharsetDecoder defined here into the interface used by mime.WordDecoder.
DecodeAsIs is the identity encoding used whenever no decoding is required for a particular transfer encoding.
DecodeFromBase64 is used to output unencoded bytes from MIME BASE-64 encoded bytes.
DecodeFromQuotedPrintable is used to output unencoded bytes from quoted-printable encoded bytes.
DecodeToBase64 is used to output MIME BASE-64 encoded bytes from unencoded bytes.
DecodeToQuotedPrintable is used to output quoted-printed encoded bytes from unencoded bytes.
DefaultCharsetDecoder is the default decoder.
DefaultCharsetEncoder is the default encoder.
NewHeader will build a new MIME header.
NewMediaType creates a new media type from the given values.
NewMediaTypeMap creates a new media type from the given values, using a map argument rather than a list of paired strings.
NewMessage will create a message with the selected boundary.
Parse parses the given bytes as an email message and returns the message object.
ParseMediaType parses a structured media type header using mime.ParseMediaType and returns a pointer to a MediaType object.
SelectTransferDecoder returns a transfer decoder to use for the given Content-Transfer-Encoding header value.
WithMaxDepth sets the maximum depth the parse is allowed to descend recursively within subparts.
# Constants
CDFilename is the name to give the Content-disposition filename parameter.
ContentDisposition is the name to give the Content-disposition header.
ContentType is the name to give the Content-type header.
CTBoundary is the name to give teh Content-type boundary parameter.
CTCharset is the name to give the charset parameter of the Content-type header.
MaxMultipartDepth is the default depth the parser will recurse into a message.
# Variables
CharsetDecoder is the Decoder used for transforming input characters into unicode for use in the decoded fields of MIME messages.
CharsetEncoder is the Encoder used for outputting unicode strings as bytes in the output format.
TransferDecoders contains a map of transfer decoder objects for handling all standard transfer encodings.
# Structs
Header provides tools built on simple.Header to work with MIME headers.
MediaType represents a Content-type or Content-disposition header.
Message represents a MIME message.
ParseError is returned when one or more errors occur while parsing an email message.
TransferDecoder represents the pair of decoders for use when encoding/decoding the transfer encoding used for the body of a MIME message.
# Type aliases
Decoder represents the character decoding function used by the mime package for transforming parsed data supplied in arbitrary text encodings.
Encoder represents the character encoding function used by the mime package to transform data supplied in native unicode format to be written out in the character encoding indicated by the charset of the message.
PartWalker is the callback used to iterate through parts in WalkParts and WalkSingleParts.
TransferDecoderFunc represents a function that writes a MIME message body according to a given Content-Transfer-Encoding.