Documentation ¶
Index ¶
- Constants
- func EncodeHeaderLine(key, val string) (string, error)
- func MustEncodeHeaderLine(key, val string) string
- type Addresses
- func (addrs Addresses) CanonialAddresses()
- func (addrs Addresses) FilterExclEmpty() Addresses
- func (addrs Addresses) FilterInclWithAddress() Addresses
- func (addrs Addresses) FilterInclWithoutAddress() Addresses
- func (addrs Addresses) String(smtpOnly, smtpToLower, sortAsc bool) string
- func (addrs Addresses) Strings(smtpOnly, smtpToLower, sortAsc bool) []string
- func (addrs Addresses) TrimSpace(trimName, trimAddress bool)
- type MessageWriter
Constants ¶
View Source
const ( HeaderMessageID = "Message-ID" HeaderBcc = "Bcc" HeaderCc = "Cc" HeaderFrom = "From" HeaderSubject = "Subject" HeaderTo = "To" AddrSep = ", " HeaderSep = ": " )
Variables ¶
This section is empty.
Functions ¶
func EncodeHeaderLine ¶ added in v0.67.2
func MustEncodeHeaderLine ¶ added in v0.67.2
Types ¶
type Addresses ¶ added in v0.40.0
func ParseAddressList ¶ added in v0.67.5
func (Addresses) CanonialAddresses ¶ added in v0.67.5
func (addrs Addresses) CanonialAddresses()
func (Addresses) FilterExclEmpty ¶ added in v0.67.5
func (Addresses) FilterInclWithAddress ¶ added in v0.67.5
func (Addresses) FilterInclWithoutAddress ¶ added in v0.67.5
type MessageWriter ¶ added in v0.67.2
type MessageWriter struct { To Addresses Cc Addresses Bcc Addresses From *mail.Address Sender *mail.Address Date *time.Time Subject string Header textproto.MIMEHeader BodyPartsSet multipartutil.PartsSet // Attachments or Inline }
func NewMessageWriter ¶ added in v0.67.3
func NewMessageWriter() *MessageWriter
func (*MessageWriter) Bytes ¶ added in v0.67.3
func (mw *MessageWriter) Bytes() ([]byte, error)
func (*MessageWriter) HeaderLines ¶ added in v0.67.2
func (mw *MessageWriter) HeaderLines() []string
func (*MessageWriter) RecipientCount ¶ added in v0.67.5
func (mw *MessageWriter) RecipientCount() int
func (*MessageWriter) String ¶ added in v0.67.2
func (mw *MessageWriter) String() (string, error)
Click to show internal directories.
Click to hide internal directories.