goem

package module
v0.0.0-...-722e3d4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 9 Imported by: 0

README

goem

email tools written in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RootDir string       `toml:"root_dir"`
	Server  ServerConfig `toml:"server"`
}

func NewConfig

func NewConfig(path string) *Config

type Mail

type Mail struct {
	Key     maildir.Key
	Subject string
	Headers mail.Header
	Body    io.Reader
}

Mail is ...

func NewMail

func NewMail(m maildir.Mail) *Mail

NewMail is ...

type Maildir

type Maildir struct {
	Name string
}

Maildir is ...

func NewMaildir

func NewMaildir(path string) (*Maildir, error)

NewMaildir is ...

type MaildirRoot

type MaildirRoot struct {
	// contains filtered or unexported fields
}

MaildirRoot is ...

func NewMaildirRoot

func NewMaildirRoot(path string) *MaildirRoot

NewMaildirRoot is ...

func (*MaildirRoot) GetMail

func (r *MaildirRoot) GetMail(mdName, key string) (*Mail, error)

GetMail is ...

func (*MaildirRoot) GetMails

func (r *MaildirRoot) GetMails(mdName, subDirName string) ([]Mail, error)

GetMails is ...

func (*MaildirRoot) Maildirs

func (r *MaildirRoot) Maildirs() ([]Maildir, error)

Maildirs is ...

type ServerConfig

type ServerConfig struct {
	Port string `toml:"port"`
}

Directories

Path Synopsis
cli
cmd

Jump to

Keyboard shortcuts

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