package
0.53.1
Repository: https://github.com/shulhan/share.git
Documentation: pkg.go.dev

# Packages

Package dkim provide a library to parse and create DKIM-Signature header field value, as defined in RFC 6376, DomainKeys Identified Mail (DKIM) Signatures.
Package maildir provide a library to manage message (email), and its folder, using maildir format.

# Functions

IsValidLocal will return true if local part contains valid characters.
NewMultipart create multipart email message with text and HTML bodies.
ParseBody parse the the raw message's body using boundary.
ParseBodyPart parse one body part using boundary and return the rest of body.
ParseContentType parse content type from raw bytes.
ParseField create and initialize Field by parsing a single line message header.
ParseFile parse message from file.
ParseHeader parse the raw header from top to bottom.
ParseMailbox parse the raw address(es) and return the first mailbox in the list.
ParseMailboxes parse raw [address] into single or multiple mailboxes.
ParseMessage parse the raw message header and body.

# Constants

DateFormat define the default date layout in email.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
The origination date field, RFC 5322 section 3.6.1.
DKIM Signature, RFC 6376.
Originator fields, RFC 5322 section 3.6.2.
List of valid email envelope headers.
List of valid email envelope headers.
Identitication fields, RFC 5322 section 3.6.4.
MIME header fields, RFC 2045.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
Resent fields, RFC 5322 section 3.6.6.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
List of valid email envelope headers.
Trace fields, RFC 5322 section 3.6.7.
List of valid email envelope headers.
Informational fields, RFC 5322 section 3.6.5.
Destination fields, RFC 5322 section 3.6.3.
Parameter for "multipart", RFC 2046 section 5.1.
Parameter for Text Media Type, RFC 2046 section 4.1.
Parameters for "multipart/partial", RFC 2046 section 5.2.2.
List of known parameter name in header field's value.
List of known parameter name in header field's value.
List of known parameter name in header field's value.
Parameters for "application/octet-stream", RFC 2046 section 4.5.1.

# Variables

Epoch return the UNIX timestamp in seconds.

# Structs

Body represent single or multiple message body parts.
ContentType represent MIME header "Content-Type" field.
Field represent field name and value in header.
Header represent list of fields in message.
Mailbox represent an invidual mailbox.
Message represent an unpacked internet message format.
MIME represent part of message body with their header and content.
Param represent a mapping of key with its value.

# Type aliases

FieldType represent numerical identification of field name.