imaputil

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GmailIMAPHostname string = "imap.gmail.com"
	GmailIMAPPort     int    = 993
	GmailSMTPHostname string = "smtp.gmail.com"
	DefaultEnvPrefix  string = "IMAP_"
)

Variables

This section is empty.

Functions

func Host

func Host(hostname string, port int) string

Types

type ClientConfig

type ClientConfig struct {
	Hostname    string
	Username    string
	Password    string
	Port        int
	TLSRequired bool
}

func NewClientConfigEnv

func NewClientConfigEnv(prefix string) (ClientConfig, error)

type ClientMore

type ClientMore struct {
	Config ClientConfig
	Client *client.Client
}

func NewClientMoreEnv

func NewClientMoreEnv(prefix string) (*ClientMore, error)

func (*ClientMore) Connect

func (cm *ClientMore) Connect() error

func (*ClientMore) ConnectAndLogin

func (cm *ClientMore) ConnectAndLogin() error

func (*ClientMore) Login

func (cm *ClientMore) Login() error

func (*ClientMore) Logout

func (cm *ClientMore) Logout() error

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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