Versions in this module Expand all Collapse all v0 v0.0.1 Aug 17, 2022 Changes in this version + var ErrHeaderNotPresent = errors.New("mail: header not in message") + type Address struct + Address string + Name string + func ParseAddress(address string) (*Address, error) + func ParseAddressList(list string) ([]*Address, error) + func (a *Address) String() string + type AddressParser struct + WordDecoder *mime.WordDecoder + func (p *AddressParser) Parse(address string) (*Address, error) + func (p *AddressParser) ParseList(list string) ([]*Address, error) + type Header map[string][]string + func (h Header) AddressList(key string) ([]*Address, error) + func (h Header) Date() (time.Time, error) + func (h Header) Get(key string) string + type Message struct + Body io.Reader + Header Header + func ReadMessage(r io.Reader) (msg *Message, err error)