Versions in this module Expand all Collapse all v1 v1.3.1 Jun 15, 2021 v1.3.0 May 20, 2021 v1.2.3 May 20, 2021 v1.2.2 Jan 3, 2021 Changes in this version + var ErrHeaderSyntax = errors.New("bad syntax in header") + var ErrUnimplemented = errors.New("unimplemented") + func ReadBody(r io.Reader, header *Header) (interface{}, error) + func TextPlainReader(r io.Reader, flowed, delsp bool) io.Reader + type Address struct + Address string + Name string + type DeliveryStatus struct + Message *Header + Recipients []*Header + func (ds *DeliveryStatus) WriteTo(w io.Writer) (int64, error) + type Field struct + N string + V []string + func (f Field) Name() string + func (f Field) Value() string + func (f Field) WriteTo(w io.Writer) (int64, error) + type Header struct + DefaultType string + Fields []*Field + func ReadHeader(r io.Reader, defaultType string) (*Header, error) + func (h Header) Charset() string + func (h Header) Disposition() (string, map[string]string) + func (h Header) Encoding() string + func (h Header) InReplyTo() []string + func (h Header) MajorType() string + func (h Header) MessageID() string + func (h Header) MinorType() string + func (h Header) Params() map[string]string + func (h Header) Recipients() []*Address + func (h Header) References() []string + func (h Header) Sender() *Address + func (h Header) Subject() string + func (h Header) Time() time.Time + func (h Header) Type() string + func (h Header) WriteTo(w io.Writer) (int64, error) + type Message Part + func ReadMessage(r io.Reader) (*Message, error) + func (m *Message) WriteTo(w io.Writer) (int64, error) + type Multipart struct + Parts []*Part + Postamble string + Preamble string + type Part struct + B interface{} + func ReadPart(r io.Reader, header *Header) (*Part, error) + func (p *Part) Body() (io.Reader, error) + func (p *Part) WriteTo(w io.Writer) (int64, error) Other modules containing this package github.com/bobg/rmime/v2