emailparse

package
v0.0.0-...-73ca27c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URLsFromText

func URLsFromText(con *data.Context, em *Email) ([]string, error)

URLsFromText extracts URLs from the email text bodies

Types

type Email

type Email struct {
	Images     []ImageBody
	Texts      []TextBody
	Namespaces []string
	Subject    string
}

Email represents everything we extracted from an email

func Get

func Get(con *data.Context, m io.Reader) (*Email, error)

Get parses the email and returns all relevant data

type ImageBody

type ImageBody struct {
	Body     []byte
	Encoding string
}

ImageBody is an image extracted from an EMail

type TextBody

type TextBody struct {
	Body        string
	ContentType string
}

TextBody is the text extracted from an EMail

Jump to

Keyboard shortcuts

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