Skip to content

Export some neccessary types to read info #195

@Guest-615695028

Description

@Guest-615695028

We are expected to see exported types and fields to create MessageSetting, PartSetting, FileSetting, etc..

type Message struct {
	header      header
	parts       []*part
	attachments []*file
	embedded    []*file
	charset     string
	encoding    Encoding
	hEncoder    mimeEncoder
	buf         bytes.Buffer
}

type header map[string][]string

type part struct {
	contentType string
	copier      func(io.Writer) error
	encoding    Encoding
}

type file struct {
	Name     string
	Header   map[string][]string
	CopyFunc func(w io.Writer) error
}

type Message struct {
	Header      Header
	Parts       []*Part
	Attachments []*File
	Embedded    []*File
	Charset     string
	Encoding    Encoding
	Encoder     mime.WordEncoder
	Buf         bytes.Buffer
}

type Header map[string][]string

type Part struct {
	ContentType string
	Copier      func(io.Writer) error
	Encoding    Encoding
}

type File struct {
	Name     string
	Header   Header
	CopyFunc func(w io.Writer) error
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions