# Functions
CharsetDecoderToCharsetReader transforms a CharsetDecoder defined here into the interface used by mime.WordDecoder.
Decode transforms a single header field body and looks for MIME word encoded field values.
DefaultCharsetDecoder is the default decoder.
DefaultCharsetEncoder is the default encoder.
Encode transforms a single header field body by looking for any characters allowed for header encoding and turning them into encode body values using word encoder.
New constructs a new field with no original value.
NewFoldEncoding creates a new FoldEncoding with the given settings.
Parse will take a single header field line, including any folded continuation lines.
ParseLines splits the given input into lines according to the rules we use to determine how to break header fields up inside a header.
# Constants
indent placed before folded lines.
we forceably break headers and 7bit/8bit bodies lines longer than this.
we prefer headers and 7bit/8bit bodies lines shorter than this.
we prefer not to fold at all.
# 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.
DefaultFoldEncoding creates a new FoldEncoding using default settings.
DoNotFoldEncoding is a FoldEncoding that doesn't perform folding.
ErrDoNotFold is returned by NewFoldEncoding when the preferredFoldLength or forcedFoldLength are set to DoNotFold (-1), but both are not set that way.
ErrFoldIndentSpace is returned by NewFoldEncoding when a non-space/non-tab character is put in the foldIndent setting.
ErrFoldIndentTooLong is returned by NewFoldEncoding when the foldIndent setting is equal to or longer than the preferredFoldLength.
ErrFoldIndentTooShort is returned by NewFoldEncoding when the foldIndent is empty.
ErrFoldLengthTooLong is returned by NewFoldEncoding when the preferredFoldLength is longer than the forcedFoldLength.
ErrFoldLengthTooShort is returned by NewFoldEncoding when the forcedFoldLength is shorter than 3 bytes long.
# Structs
BadStartError is returned when the header begins with junk text that does not appear to be a header.
Base implements an email.Field with a baseline implementation that does not implement folding.
Field provides a low-level interface to manage a single email header field.
FoldEncoding provides the tooling for folding email message headers.
Raw is a email.Field implementation that presents the parsed Raw value.
# Type aliases
Break is basically identical to header.Break, but with a focus on bytes.
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.
Line represents the unparsed content for a complete header field line.
Lines represents the unparsed content for zero or more header field lines.