pump

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SourceHostPort  string
	SourceUsername  string
	SourcePassword  string
	SourceMailbox   string
	SourceTLS       bool
	SourceTLSConfig *tls.Config
	SourceFactory   imap.ClientFactory
	SourceDebug     bool

	DestHostPort  string
	DestUsername  string
	DestPassword  string
	DestMailbox   string
	DestTLS       bool
	DestTLSConfig *tls.Config
	DestTransport string
	DestFactory   imap.ClientFactory
	DestDebug     bool

	IDLEFallbackInterval time.Duration
	BatchSize            uint
	DisableDeletions     bool
	FetchBufferSize      uint
	FetchMaxInterval     time.Duration

	DoneChan chan<- error
	StopChan <-chan struct{}
}

type MailPump

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

func NewMailPump

func NewMailPump(cfg *Config) (*MailPump, error)

func (*MailPump) Close

func (pump *MailPump) Close()

Jump to

Keyboard shortcuts

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