backendutil

package
v0.0.0-...-6595cec Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package backendutil provide utilities to implement SMTP backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransformBackend

type TransformBackend struct {
	smtp.Backend
	Transform func(from string, to []string, r io.Reader) (string, []string, io.Reader)
}

TransformBackend is a backend that transforms messages.

func (*TransformBackend) Login

func (be *TransformBackend) Login(username, password string) (smtp.User, error)

Login implements the smtp.Backend interface.

Jump to

Keyboard shortcuts

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