mail

package
v0.0.0-...-b0009eb Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractURLs

func ExtractURLs(text string) []string

Extracts URLs from given text.

func MailBody

func MailBody(parts map[string]string) (string, error)

Returns the main body of the email; hopefully containing URLs.

func RenderTemplate

func RenderTemplate(file string, article *reader.Article) ([]byte, error)

func SendArticle

func SendArticle(article *reader.Article, mime string, to string, readable bool) error

func SendAttachment

func SendAttachment(r reader.Response, to string, url string) error

func StripSignature

func StripSignature(text string) string

TODO Strips the signature from an email.

func VerifySPF

func VerifySPF(email string) (bool, error)

Types

type Mail

type Mail struct {
	From    string
	Date    string
	ReplyTo string
	Body    string
	Parts   map[string]string
}

Jump to

Keyboard shortcuts

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