importexport

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package importexport provides core functionality of Import-Export app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher added in v1.6.3

type Cacher interface {
	GetTransferDir() string
}

type ImportExport

type ImportExport struct {
	*users.Users
	// contains filtered or unexported fields
}

func New

func New(
	locations Locator,
	cache Cacher,
	panicHandler users.PanicHandler,
	eventListener listener.Listener,
	clientManager pmapi.Manager,
	credStorer users.CredentialsStorer,
) *ImportExport

func (*ImportExport) GetEMLExporter

func (ie *ImportExport) GetEMLExporter(username, address, path string) (*transfer.Transfer, error)

GetEMLExporter returns transferrer from ProtonMail account to local EML structure.

func (*ImportExport) GetLocalImporter

func (ie *ImportExport) GetLocalImporter(username, address, path string) (*transfer.Transfer, error)

GetLocalImporter returns transferrer from local EML or MBOX structure to ProtonMail account.

func (*ImportExport) GetMBOXExporter

func (ie *ImportExport) GetMBOXExporter(username, address, path string) (*transfer.Transfer, error)

GetMBOXExporter returns transferrer from ProtonMail account to local MBOX structure.

func (*ImportExport) GetRemoteImporter

func (ie *ImportExport) GetRemoteImporter(username, address, remoteUsername, remotePassword, host, port string) (*transfer.Transfer, error)

GetRemoteImporter returns transferrer from remote IMAP to ProtonMail account.

func (*ImportExport) ReportBug

func (ie *ImportExport) ReportBug(osType, osVersion, description, accountName, address, emailClient string) error

ReportBug reports a new bug from the user.

func (*ImportExport) ReportFile

func (ie *ImportExport) ReportFile(osType, osVersion, accountName, address string, logdata []byte) error

ReportFile submits import report file.

type Locator added in v1.6.3

type Locator interface {
	ProvideLogsPath() (string, error)
	Clear() error
}

Jump to

Keyboard shortcuts

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