eml

package module
v0.0.0-...-0806eaa Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: GPL-2.0 Imports: 5 Imported by: 1

README

eml

EML format encoder and decoder written in Golang.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	ContentType             ContentType
	ContentTransferEncoding string
	ContentDisposition      ContentDisposition
	Content                 string
}

type ContentDisposition

type ContentDisposition struct {
	Value    string
	Filename string
}

type ContentType

type ContentType struct {
	ContentType string
	Boundary    string
	Name        string
}

type Eml

type Eml struct {
	ReturnPath  string
	From        string
	To          string
	Received    []string
	MimeVersion string
	Subject     string
	MessageId   string
	ContentType ContentType
	Date        string
	Body        []byte
	ReplyTo     string
	InReplyTo   string
	References  string
	XSender     string
	XReceiver   string
	Attachments []Attachment
	Message     *Eml
}

func NewEml

func NewEml() *Eml

func (*Eml) AddAttachment

func (e *Eml) AddAttachment(filePath string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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