migrate

package
v0.0.0-...-7d36741 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

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

Migrator performs the alias migration.

func New

func New(cfg *config.Config) (*Migrator, error)

New creates a Migrator and connects both IMAP accounts.

func (*Migrator) Close

func (m *Migrator) Close()

Close disconnects both IMAP clients and closes the state DB.

func (*Migrator) Run

func (m *Migrator) Run() (*Stats, error)

Run executes the migration and returns stats.

type Stats

type Stats struct {
	FoldersScanned  int
	MessagesScanned int
	MessagesMatched int
	MessagesCopied  int
	MessagesSkipped int
	MessagesFailed  int
}

Stats accumulates per-run counters.

Jump to

Keyboard shortcuts

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