mail

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mail provides a mockable wrapper for net/mail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) ParseAddress

func (*Impl) ParseAddress(address string) (*mail.Address, error)

func (*Impl) ParseAddressList

func (*Impl) ParseAddressList(list string) ([]*mail.Address, error)

func (*Impl) ParseDate

func (*Impl) ParseDate(date string) (time.Time, error)

func (*Impl) ReadMessage

func (*Impl) ReadMessage(r io.Reader) (msg *mail.Message, err error)

type Interface

type Interface interface {
	ParseAddress(address string) (*mail.Address, error)
	ParseAddressList(list string) ([]*mail.Address, error)
	ParseDate(date string) (time.Time, error)
	ReadMessage(r io.Reader) (msg *mail.Message, err error)
}

Jump to

Keyboard shortcuts

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