Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export some neccessary types to read info #195

Open
Guest-615695028 opened this issue Apr 22, 2024 · 1 comment
Open

Export some neccessary types to read info #195

Guest-615695028 opened this issue Apr 22, 2024 · 1 comment

Comments

@Guest-615695028
Copy link

Guest-615695028 commented Apr 22, 2024

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
}
@Guest-615695028
Copy link
Author

I tried to modify them myself, but what is the effect to the coupled components?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant