imap

package
v0.0.0-...-7134969 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetListOfMails

func GetListOfMails(selectedBox string) (envelopes []Envelope, listOfBoxes Boxes)

GetListOfMails - return array of string

func TryToLogin

func TryToLogin() (successful bool)

TryToLogin - return result of login

Types

type Boxes

type Boxes struct {
	BoxesNames  []string
	SelectedBox int
}

Boxes - name of boxes and one selected

type Envelope

type Envelope struct {
	Date    string
	Subject string
	Sender  string
	Email   string
	Seen    bool
	UID     int
}

Envelope - struct for data from envelope of mails

type Letter

type Letter struct {
	Date,
	Subject,
	From,
	To,
	Body string
}

Letter - struct which discribe content of email

func GetLetter

func GetLetter(uid string, selectedBox string) (letter Letter)

GetLetter - find by UID letter and return it

Jump to

Keyboard shortcuts

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