email

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	Date    time.Time
	From    *mail.Address
	Subject string
}

Envelope contains fields for email headers.

func Fetch

func Fetch(c map[string]string) []Envelope

Fetch fetches *unread* email headers from the inbox of the provided gmail account in the config(uration).

func (Envelope) Format

func (envelope Envelope) Format(index int) string

Format formats & beautifies Envelope struct data.

Jump to

Keyboard shortcuts

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