pstexport

package
v0.0.0-...-6fa5ea4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package pstexport is a command-line interface and library for exporting PST files (using go-pst).

Index

Constants

This section is empty.

Variables

View Source
var Logger = logrus.New()

Logger defines our logger.

Functions

func ExecuteExportStrategy

func ExecuteExportStrategy(exportStrategy ExportStrategy, exportContext ExportContext) error

ExecuteExportStrategy executes the export strategy. Processes the PST file and calls Export on the export strategy for every message.

Types

type ExportContext

type ExportContext struct {
	InputFile           string
	OutputDirectory     string
	IsOnlyPlaintextBody bool
}

ExportContext defines the context used when using an export strategy.

type ExportStrategy

type ExportStrategy interface {
	Name() string
	Export(pstFile *pst.File, pstMessage pst.Message, pstMessageIndex int, pstFolder pst.Folder, pstFormatType string, pstEncryptionType string, exportContext ExportContext) error
}

ExportStrategy defines the interface all export strategies implement.

func GetAllExportStrategies

func GetAllExportStrategies() []ExportStrategy

GetAllExportStrategies returns all export strategies.

func GetExportStrategyByName

func GetExportStrategyByName(name string) (ExportStrategy, error)

GetExportStrategyByName returns the export strategy by the specified name.

type ExportStrategyEML

type ExportStrategyEML struct {
	ExportStrategy
}

ExportStrategyEML implements exporting to EML.

func (ExportStrategyEML) Export

func (exportStrategyEML ExportStrategyEML) Export(pstFile *pst.File, pstMessage pst.Message, pstMessageIndex int, pstFolder pst.Folder, pstFormatType string, pstEncryptionType string, exportContext ExportContext) error

func (ExportStrategyEML) Name

func (exportStrategyEML ExportStrategyEML) Name() string

Jump to

Keyboard shortcuts

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