commands

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package commands implements CLI subcommands for imapsync-go.

Package commands implements CLI subcommands for imapsync-go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(cCtx *cli.Context) error

Show displays information about mailboxes in source and destination IMAP accounts.

func Sync

func Sync(cCtx *cli.Context) error

Sync copies messages between IMAP servers according to the provided configuration.

Types

type FolderSyncPlan

type FolderSyncPlan struct {
	SourceFolder            string
	DestinationFolder       string
	DestinationFolderExists bool
	NewMessages             int
	MessagesToSync          []*imap.Message
}

FolderSyncPlan describes how a single source folder should be copied to its destination.

type SyncSummary

type SyncSummary struct {
	TotalNew int
	Plans    []FolderSyncPlan
}

SyncSummary aggregates the per-folder plans along with total message counts.

Jump to

Keyboard shortcuts

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