mailparse

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Enc = "Content-Transfer-Encoding"
	Tp  = "Content-Type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	To      string
	From    string
	Subject string
	Head    mail.Header
	Parts   *[]*Part
}

https://github.com/kirabou/parseMIMEemail.go

func ReadMail

func ReadMail(r io.Reader) (m *Mail, err error)

func ReadMailFromRaw

func ReadMailFromRaw(data *[]byte) (m *Mail, err error)

func (*Mail) TextBody

func (m *Mail) TextBody() (string, bool)

type Part

type Part struct {
	ContentType string
	// contains filtered or unexported fields
}

func (*Part) ContentString

func (p *Part) ContentString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL