message

package
v0.0.0-...-3bded81 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JiraStart = "{{{ jira"
	JiraEnd   = "}}}"

	JiraNewColumn  = "Current"
	JiraPrevColumn = "Previous"
	JiraDiffColumn = "x"
)

Variables

This section is empty.

Functions

func DecodeMessageID

func DecodeMessageID(s string, header textproto.MIMEHeader) error

func EncodeMessageID

func EncodeMessageID(t string, a map[string]string) string

func GetChecksum

func GetChecksum(cfg *config.Configuration, fp string) (string, error)

func MakeChecksum

func MakeChecksum(m *Mail) (string, error)

func Write

func Write(w io.Writer, m *Mail, n int) error

Types

type Address

type Address struct {
	Name    string
	Address string
	Tags    map[string]struct{}
}

func ParseAddress

func ParseAddress(s string) (*Address, error)

func ParseAddressList

func ParseAddressList(s string) ([]*Address, error)

func (*Address) Mail

func (a *Address) Mail() *mail.Address

type Mail

type Mail struct {
	Rcpt   *Address
	Header textproto.MIMEHeader
	Meta   *meta.Table
	Body   []string
}

func NewMail

func NewMail() *Mail

func ReadMail

func ReadMail(cfg *config.Configuration, rd io.Reader) (msg *Mail, err error)

func ReadMailfile

func ReadMailfile(cfg *config.Configuration, fp string) (*Mail, error)

func (*Mail) GetBody

func (m *Mail) GetBody() string

func (*Mail) HeaderChecksum

func (m *Mail) HeaderChecksum() string

func (*Mail) HeaderID

func (m *Mail) HeaderID() string

type Meta

type Meta struct {
	Name map[string]int
	Data map[string]string
	// contains filtered or unexported fields
}

func (*Meta) Set

func (m *Meta) Set(k, v string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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